{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "日期：11月13日-11月14日      \n",
    "撰写人：张开心  \n",
    "\n",
    "-----\n",
    "\n",
    "## 高德API作业布置：\n",
    "\n",
    "> * 1、所有的高德API功能（除去地理围栏、轨迹纠偏（学有余力的可以尝试））\n",
    "   1.1 (每一个API功能请思考和设计该功能的一个具体的产品应用方案或场景)   \n",
    "> * 2、所有的功能一定用函数封装，且所有的参数（必选参数+可选参数（默认参数None/?）） 应该写在定义函数之中。   \n",
    "> * 3、我们的高德API在jupyter中全部测试完成无误，将其保存为一个geo.py文件（模块）\n",
    "   3.3 PEP8 规范 书写python代码（python head first 书上有）\n",
    "> * 4、尝试自己调用这个模块 ： from geo import geocode / import geo\n",
    "> * 5、提交内容：上传github/gitee：1、geo_name.ipynb 2、geo.py\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---\n",
    "### 准备工作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "key = \"0183e3acc9bdff621d98d15d15a37181\"\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 地理编码/逆地理编码 API 是通过 HTTP/HTTPS 协议访问远程服务的接口，提供结构化地址与经纬度之间的相互转化的能力。\n",
    "\n",
    "### 地理编码:\n",
    "> 将详细的结构化地址转换为高德经纬度坐标。且支持对地标性名胜景区、建筑物名称解析为高德经纬度坐标。\n",
    ">> 结构化地址举例：北京市朝阳区阜通东大街6号转换后经纬度：116.480881,39.989410\n",
    ">>> 地标性建筑举例：天安门转换后经纬度：116.397499,39.908722\n",
    "\n",
    "> * 1、结构化地址的定义： 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。    \n",
    "> * 2、地理编码 API 服务地址url:https://restapi.amap.com/v3/geocode/geo?parameters      \n",
    "> * 3、请求方式：requests.get()       \n",
    "> * 4、必选参数：   \n",
    ">> * A.key（高德API秘钥） \n",
    ">> * B.address(结构化地址)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 使用说明\n",
    "> 1、申请Web服务API类型Key；\n",
    "\n",
    "> 2、 参考接口参数文档发起HTTP/HTTPS请求，第一步申请的 Key 需作为必填参数一同发送；\n",
    "\n",
    "> 3、第三步，接收请求返回的数据（JSON或XML格式），参考返回参数文档解析数据。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 数据准备： 东山中学_address = \"广东省梅州市梅县东山中学\" （结构化地址）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "东山中学_address = \"广东省梅州市梅县东山中学\"                 ### address 是需要获取坐标的结构化地址\n",
    "url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params = {                                                    ### params是参数的意思 使用字典的结构\n",
    "    \"key\":key,\n",
    "    \"address\":东山中学_address\n",
    "}\n",
    "response = requests.get(url,params=params)\n",
    "response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'116.135586,24.305583'"
      ]
     },
     "execution_count": 73,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 响应结果的格式可以通过请求参数 output 指定，默认为 JSON 形式。\n",
    "东山中学_location = response.json()['geocodes'][0]['location']      ### geocodes（地理编码信息列表） 查询字典的方式\n",
    "东山中学_location                                                   ### location：坐标点(经度、维度)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 逆地理编码\n",
    "\n",
    "> * 1.API服务地址url : https://restapi.amap.com/v3/geocode/regeo?parameters    \n",
    "> * 2.请求方式：requests.get()    \n",
    "> * 3.参数：    \n",
    ">> * A、必选：key,location(经纬度坐标)\n",
    ">> * B、可选: extensions\n",
    "     [(默认取值：base，也就是返回基本地址信息)/（参数取值为 all 时会返回基本地址信息、附近 POI 内容、道路信息以及道路交叉口信息）]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 数据准备：东山中学_location（经纬度）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 逆地理编码函数\n",
    "def regeo(key,location,extensions=\"base\"):          ### 形参（实?）\n",
    "    url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"extensions\":extensions,       ### 在字典中，这些对象取参数（上面提及的）\n",
    "    }\n",
    "    r = requests.get(url,params)\n",
    "    results = r.json()\n",
    "    return results                    ### 注意这里返回值用的是return\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 75,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 调用函数 显示实参\n",
    "url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "params = {\n",
    "    \"key\":key,\n",
    "    \"location\":东山中学_location,\n",
    "    \"extensions\":\"all\"\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r                                         ### r其实就是response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['学子大道', '学海路', '江边路']"
      ]
     },
     "execution_count": 76,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 建一个空列表_roads_,并从字典中取值后添加入列表\n",
    "_roads_= []\n",
    "for item in r.json()['regeocode']['roads']:         ### 上一栏中代码运行返回的结果进行取值得到的列表，['regeocode']['roads']是字典取值\n",
    "#     print(item['name'])\n",
    "    _roads_.append(item['name'])                    ### roads道路信息列表中的name道路信息\n",
    "_roads_"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '0753G50F0450181908',\n",
       "    'location': '116.138,24.306',\n",
       "    'direction': '西',\n",
       "    'name': '学子大道',\n",
       "    'distance': '240.986'},\n",
       "   {'id': '0753G50F045018217',\n",
       "    'location': '116.133,24.3049',\n",
       "    'direction': '东',\n",
       "    'name': '学海路',\n",
       "    'distance': '273.964'},\n",
       "   {'id': '0753G50F0450181044',\n",
       "    'location': '116.133,24.306',\n",
       "    'direction': '东',\n",
       "    'name': '江边路',\n",
       "    'distance': '313.305'}],\n",
       "  'roadinters': [{'second_name': '学海路',\n",
       "    'first_id': '0753G50F0450181044',\n",
       "    'second_id': '0753G50F045018217',\n",
       "    'location': '116.132533,24.306026',\n",
       "    'distance': '313.305',\n",
       "    'first_name': '江边路',\n",
       "    'direction': '东'}],\n",
       "  'formatted_address': '广东省梅州市梅江区金山街道东山中学',\n",
       "  'addressComponent': {'city': '梅州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '441402',\n",
       "   'district': '梅江区',\n",
       "   'towncode': '441402006000',\n",
       "   'streetNumber': {'number': '57号',\n",
       "    'location': '116.137485,24.306039',\n",
       "    'direction': '东',\n",
       "    'distance': '198.996',\n",
       "    'street': '学子大道'},\n",
       "   'country': '中国',\n",
       "   'township': '金山街道',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '0753'},\n",
       "  'aois': [{'area': '281002.283107',\n",
       "    'type': '141202',\n",
       "    'id': 'B02F1020CB',\n",
       "    'location': '116.135537,24.305466',\n",
       "    'adcode': '441402',\n",
       "    'name': '东山中学',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B02F1020CB',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路8号',\n",
       "    'poiweight': '0.566638',\n",
       "    'name': '东山中学',\n",
       "    'location': '116.135537,24.305466',\n",
       "    'distance': '13.9261',\n",
       "    'tel': '0753-2222890',\n",
       "    'type': '科教文化服务;学校;中学'},\n",
       "   {'id': 'B02F101E1F',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '工业大道第23号(广东省梅州航道局梅县分局东南)',\n",
       "    'poiweight': '0.106723',\n",
       "    'name': '梅州市东山升大补习学校',\n",
       "    'location': '116.133354,24.305111',\n",
       "    'distance': '232.229',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B02F10R8WY',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路10-23号',\n",
       "    'poiweight': '0.14796',\n",
       "    'name': '泰丰综合楼',\n",
       "    'location': '116.132854,24.305825',\n",
       "    'distance': '278.197',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;楼宇;商务写字楼'},\n",
       "   {'id': 'B0FFG93341',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路10号-27',\n",
       "    'poiweight': '0.142403',\n",
       "    'name': '东宪梅教育',\n",
       "    'location': '116.132762,24.306044',\n",
       "    'distance': '290.762',\n",
       "    'tel': '0753-2277398;0753-2316866;18807533288',\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B02F10RBOA',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路10-32附近',\n",
       "    'poiweight': '0.159994',\n",
       "    'name': '中深教育(东中校区)',\n",
       "    'location': '116.132753,24.306063',\n",
       "    'distance': '292.031',\n",
       "    'tel': '13750543601',\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B02F102LKN',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路16号附近',\n",
       "    'poiweight': '0.134708',\n",
       "    'name': '东山派出所状元桥分所',\n",
       "    'location': '116.132514,24.306614',\n",
       "    'distance': '331.78',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;公检法机构;公安警察'},\n",
       "   {'id': 'B02F1043RV',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '东山教育基地学子大道4号梅州市职业技术学校',\n",
       "    'poiweight': '0.073506',\n",
       "    'name': '梅州市职业技术学校-翰荣实训楼',\n",
       "    'location': '116.138629,24.304205',\n",
       "    'distance': '344.344',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B02F101E1E',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '东山大道',\n",
       "    'poiweight': '0.27591',\n",
       "    'name': '梅州市东山学校',\n",
       "    'location': '116.136047,24.308846',\n",
       "    'distance': '365.845',\n",
       "    'tel': '0753-2221638',\n",
       "    'type': '科教文化服务;学校;中学'},\n",
       "   {'id': 'B02F102AB2',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路398号附近',\n",
       "    'poiweight': '0.176757',\n",
       "    'name': '广东省梅州航道局梅县区分局',\n",
       "    'location': '116.131945,24.305773',\n",
       "    'distance': '369.607',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B0FFLJV9GT',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '东山中学西校门侧泰丰综合楼首层1-19号',\n",
       "    'poiweight': '0.132918',\n",
       "    'name': '学吧教育东中校区',\n",
       "    'location': '116.133125,24.305083',\n",
       "    'distance': '255.54',\n",
       "    'tel': '0753-2188002;13727635350;18923002130',\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B02F10360H',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '梅江区',\n",
       "    'poiweight': '0.158606',\n",
       "    'name': '黄伍塘',\n",
       "    'location': '116.137397,24.307619',\n",
       "    'distance': '291.424',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;普通地名;村庄级地名'},\n",
       "   {'id': 'B0FFJKH4DF',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路10-5号美家乐超市3楼',\n",
       "    'poiweight': '0.150525',\n",
       "    'name': '一心教育(东中校区)',\n",
       "    'location': '116.132920,24.305737',\n",
       "    'distance': '270.734',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B02F1043RZ',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路30号(东山中学老校门对面)',\n",
       "    'poiweight': '0.140803',\n",
       "    'name': '客通游船有限公司',\n",
       "    'location': '116.132718,24.306136',\n",
       "    'distance': '297.093',\n",
       "    'tel': '0753-2291199',\n",
       "    'type': '公司企业;公司;公司'},\n",
       "   {'id': 'B0FFIQZO40',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路与江边路交叉口东南50米',\n",
       "    'poiweight': '0.147757',\n",
       "    'name': '墨海教育',\n",
       "    'location': '116.132857,24.305862',\n",
       "    'distance': '278.316',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B0FFGNR2NZ',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '泰丰综合楼3楼317',\n",
       "    'poiweight': '0.146334',\n",
       "    'name': '清大学习吧',\n",
       "    'location': '116.132809,24.305759',\n",
       "    'distance': '282.132',\n",
       "    'tel': '4008185288;13509091314',\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B02F10REX8',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '东山大桥西侧(江边路)',\n",
       "    'poiweight': '0.286263',\n",
       "    'name': '梅江夜游东山码头',\n",
       "    'location': '116.131920,24.305410',\n",
       "    'distance': '372.035',\n",
       "    'tel': '0753-2291199',\n",
       "    'type': '交通设施服务;港口码头;港口码头'},\n",
       "   {'id': 'B02F103GFA',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '书山路与学海路交叉口东北150米',\n",
       "    'poiweight': '0.333479',\n",
       "    'name': '东山中学(剑英校区)',\n",
       "    'location': '116.136934,24.301903',\n",
       "    'distance': '431.41',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;中学'},\n",
       "   {'id': 'B0FFGAAKVQ',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '学子大道10西南方向60米',\n",
       "    'poiweight': '0.165794',\n",
       "    'name': '东山中学体育馆',\n",
       "    'location': '116.137477,24.304686',\n",
       "    'distance': '216.028',\n",
       "    'tel': [],\n",
       "    'type': '体育休闲服务;运动场馆;综合体育馆'},\n",
       "   {'id': 'B0FFK8X9ID',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路与江边路交叉口东北50米',\n",
       "    'poiweight': '0.132602',\n",
       "    'name': '梅州课外辅导王国',\n",
       "    'location': '116.132705,24.306153',\n",
       "    'distance': '298.782',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B0FFHMV8CE',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '泰丰综合楼3楼301',\n",
       "    'poiweight': '0.146832',\n",
       "    'name': '好学教育',\n",
       "    'location': '116.132656,24.306245',\n",
       "    'distance': '305.923',\n",
       "    'tel': '18318200747',\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B0FFFAJ5WZ',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '学海路10-24号',\n",
       "    'poiweight': '0.176702',\n",
       "    'name': '优客',\n",
       "    'location': '116.132819,24.305936',\n",
       "    'distance': '283.175',\n",
       "    'tel': '13826600721;18023515110',\n",
       "    'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "   {'id': 'B0FFF86P7J',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '东山教育基地学海路388号店',\n",
       "    'poiweight': '0.17643',\n",
       "    'name': '食尚靓饮',\n",
       "    'location': '116.132729,24.306142',\n",
       "    'distance': '296.155',\n",
       "    'tel': '13823868531;13823888531',\n",
       "    'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "   {'id': 'B0FFLJFZPY',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '学子大道',\n",
       "    'poiweight': '0.214309',\n",
       "    'name': '微小玉创业基地',\n",
       "    'location': '116.138294,24.307320',\n",
       "    'distance': '335.573',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;产业园区;产业园区'},\n",
       "   {'id': 'B02F102AB5',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '书山路1号附近',\n",
       "    'poiweight': '0.105078',\n",
       "    'name': '广东省梅县区食盐专卖局',\n",
       "    'location': '116.137039,24.301496',\n",
       "    'distance': '477.722',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B02F1043S3',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '东山大道20正南方向110米',\n",
       "    'poiweight': '0.02982',\n",
       "    'name': '龙丰村委会',\n",
       "    'location': '116.134942,24.309601',\n",
       "    'distance': '451.552',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'},\n",
       "   {'id': 'B02F103GFB',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '书山路1号',\n",
       "    'poiweight': '0.48',\n",
       "    'name': '梅州剑英图书馆(书山路)',\n",
       "    'location': '116.137238,24.301272',\n",
       "    'distance': '507.788',\n",
       "    'tel': '0753-2243467',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0FFIG8SRJ',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '东山教育基地学海路258号店',\n",
       "    'poiweight': '0.261594',\n",
       "    'name': '兰州拉面(东中店)',\n",
       "    'location': '116.132780,24.306011',\n",
       "    'distance': '288.337',\n",
       "    'tel': [],\n",
       "    'type': '餐饮服务;中餐厅;清真菜馆'},\n",
       "   {'id': 'B0FFL6FIRD',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '学子大道',\n",
       "    'poiweight': '0.150498',\n",
       "    'name': '艺韵梅小玉青年文化',\n",
       "    'location': '116.138347,24.307554',\n",
       "    'distance': '355.405',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFFVOQ1H',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '金山办龙丰村学子大道',\n",
       "    'poiweight': '0.201422',\n",
       "    'name': '状元府',\n",
       "    'location': '116.136992,24.309380',\n",
       "    'distance': '445.609',\n",
       "    'tel': '0753-2882288',\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFLJFTQR',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '学子大道',\n",
       "    'poiweight': '0.137435',\n",
       "    'name': '虚拟演播系统高效情景课堂应用研究工作室',\n",
       "    'location': '116.138726,24.303936',\n",
       "    'distance': '367.158',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科研机构;科研机构'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()       ### 响应结果"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B02F1020CB</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路8号</td>\n",
       "      <td>0.566638</td>\n",
       "      <td>东山中学</td>\n",
       "      <td>116.135537,24.305466</td>\n",
       "      <td>13.9261</td>\n",
       "      <td>0753-2222890</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B02F101E1F</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>工业大道第23号(广东省梅州航道局梅县分局东南)</td>\n",
       "      <td>0.106723</td>\n",
       "      <td>梅州市东山升大补习学校</td>\n",
       "      <td>116.133354,24.305111</td>\n",
       "      <td>232.229</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B02F10R8WY</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路10-23号</td>\n",
       "      <td>0.14796</td>\n",
       "      <td>泰丰综合楼</td>\n",
       "      <td>116.132854,24.305825</td>\n",
       "      <td>278.197</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFG93341</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路10号-27</td>\n",
       "      <td>0.142403</td>\n",
       "      <td>东宪梅教育</td>\n",
       "      <td>116.132762,24.306044</td>\n",
       "      <td>290.762</td>\n",
       "      <td>0753-2277398;0753-2316866;18807533288</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B02F10RBOA</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路10-32附近</td>\n",
       "      <td>0.159994</td>\n",
       "      <td>中深教育(东中校区)</td>\n",
       "      <td>116.132753,24.306063</td>\n",
       "      <td>292.031</td>\n",
       "      <td>13750543601</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B02F102LKN</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路16号附近</td>\n",
       "      <td>0.134708</td>\n",
       "      <td>东山派出所状元桥分所</td>\n",
       "      <td>116.132514,24.306614</td>\n",
       "      <td>331.78</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B02F1043RV</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山教育基地学子大道4号梅州市职业技术学校</td>\n",
       "      <td>0.073506</td>\n",
       "      <td>梅州市职业技术学校-翰荣实训楼</td>\n",
       "      <td>116.138629,24.304205</td>\n",
       "      <td>344.344</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B02F101E1E</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山大道</td>\n",
       "      <td>0.27591</td>\n",
       "      <td>梅州市东山学校</td>\n",
       "      <td>116.136047,24.308846</td>\n",
       "      <td>365.845</td>\n",
       "      <td>0753-2221638</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B02F102AB2</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路398号附近</td>\n",
       "      <td>0.176757</td>\n",
       "      <td>广东省梅州航道局梅县区分局</td>\n",
       "      <td>116.131945,24.305773</td>\n",
       "      <td>369.607</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFLJV9GT</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山中学西校门侧泰丰综合楼首层1-19号</td>\n",
       "      <td>0.132918</td>\n",
       "      <td>学吧教育东中校区</td>\n",
       "      <td>116.133125,24.305083</td>\n",
       "      <td>255.54</td>\n",
       "      <td>0753-2188002;13727635350;18923002130</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B02F10360H</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>梅江区</td>\n",
       "      <td>0.158606</td>\n",
       "      <td>黄伍塘</td>\n",
       "      <td>116.137397,24.307619</td>\n",
       "      <td>291.424</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;普通地名;村庄级地名</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFJKH4DF</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路10-5号美家乐超市3楼</td>\n",
       "      <td>0.150525</td>\n",
       "      <td>一心教育(东中校区)</td>\n",
       "      <td>116.132920,24.305737</td>\n",
       "      <td>270.734</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B02F1043RZ</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路30号(东山中学老校门对面)</td>\n",
       "      <td>0.140803</td>\n",
       "      <td>客通游船有限公司</td>\n",
       "      <td>116.132718,24.306136</td>\n",
       "      <td>297.093</td>\n",
       "      <td>0753-2291199</td>\n",
       "      <td>公司企业;公司;公司</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFIQZO40</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路与江边路交叉口东南50米</td>\n",
       "      <td>0.147757</td>\n",
       "      <td>墨海教育</td>\n",
       "      <td>116.132857,24.305862</td>\n",
       "      <td>278.316</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFGNR2NZ</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>泰丰综合楼3楼317</td>\n",
       "      <td>0.146334</td>\n",
       "      <td>清大学习吧</td>\n",
       "      <td>116.132809,24.305759</td>\n",
       "      <td>282.132</td>\n",
       "      <td>4008185288;13509091314</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B02F10REX8</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山大桥西侧(江边路)</td>\n",
       "      <td>0.286263</td>\n",
       "      <td>梅江夜游东山码头</td>\n",
       "      <td>116.131920,24.305410</td>\n",
       "      <td>372.035</td>\n",
       "      <td>0753-2291199</td>\n",
       "      <td>交通设施服务;港口码头;港口码头</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B02F103GFA</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>书山路与学海路交叉口东北150米</td>\n",
       "      <td>0.333479</td>\n",
       "      <td>东山中学(剑英校区)</td>\n",
       "      <td>116.136934,24.301903</td>\n",
       "      <td>431.41</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;中学</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFGAAKVQ</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>学子大道10西南方向60米</td>\n",
       "      <td>0.165794</td>\n",
       "      <td>东山中学体育馆</td>\n",
       "      <td>116.137477,24.304686</td>\n",
       "      <td>216.028</td>\n",
       "      <td>[]</td>\n",
       "      <td>体育休闲服务;运动场馆;综合体育馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFK8X9ID</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路与江边路交叉口东北50米</td>\n",
       "      <td>0.132602</td>\n",
       "      <td>梅州课外辅导王国</td>\n",
       "      <td>116.132705,24.306153</td>\n",
       "      <td>298.782</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFHMV8CE</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>泰丰综合楼3楼301</td>\n",
       "      <td>0.146832</td>\n",
       "      <td>好学教育</td>\n",
       "      <td>116.132656,24.306245</td>\n",
       "      <td>305.923</td>\n",
       "      <td>18318200747</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B0FFFAJ5WZ</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>学海路10-24号</td>\n",
       "      <td>0.176702</td>\n",
       "      <td>优客</td>\n",
       "      <td>116.132819,24.305936</td>\n",
       "      <td>283.175</td>\n",
       "      <td>13826600721;18023515110</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B0FFF86P7J</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山教育基地学海路388号店</td>\n",
       "      <td>0.17643</td>\n",
       "      <td>食尚靓饮</td>\n",
       "      <td>116.132729,24.306142</td>\n",
       "      <td>296.155</td>\n",
       "      <td>13823868531;13823888531</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B0FFLJFZPY</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>学子大道</td>\n",
       "      <td>0.214309</td>\n",
       "      <td>微小玉创业基地</td>\n",
       "      <td>116.138294,24.307320</td>\n",
       "      <td>335.573</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;产业园区;产业园区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B02F102AB5</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>书山路1号附近</td>\n",
       "      <td>0.105078</td>\n",
       "      <td>广东省梅县区食盐专卖局</td>\n",
       "      <td>116.137039,24.301496</td>\n",
       "      <td>477.722</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;区县级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B02F1043S3</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山大道20正南方向110米</td>\n",
       "      <td>0.02982</td>\n",
       "      <td>龙丰村委会</td>\n",
       "      <td>116.134942,24.309601</td>\n",
       "      <td>451.552</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇以下级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B02F103GFB</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>书山路1号</td>\n",
       "      <td>0.48</td>\n",
       "      <td>梅州剑英图书馆(书山路)</td>\n",
       "      <td>116.137238,24.301272</td>\n",
       "      <td>507.788</td>\n",
       "      <td>0753-2243467</td>\n",
       "      <td>科教文化服务;图书馆;图书馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B0FFIG8SRJ</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>东山教育基地学海路258号店</td>\n",
       "      <td>0.261594</td>\n",
       "      <td>兰州拉面(东中店)</td>\n",
       "      <td>116.132780,24.306011</td>\n",
       "      <td>288.337</td>\n",
       "      <td>[]</td>\n",
       "      <td>餐饮服务;中餐厅;清真菜馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B0FFL6FIRD</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>学子大道</td>\n",
       "      <td>0.150498</td>\n",
       "      <td>艺韵梅小玉青年文化</td>\n",
       "      <td>116.138347,24.307554</td>\n",
       "      <td>355.405</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B0FFFVOQ1H</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>金山办龙丰村学子大道</td>\n",
       "      <td>0.201422</td>\n",
       "      <td>状元府</td>\n",
       "      <td>116.136992,24.309380</td>\n",
       "      <td>445.609</td>\n",
       "      <td>0753-2882288</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>B0FFLJFTQR</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>学子大道</td>\n",
       "      <td>0.137435</td>\n",
       "      <td>虚拟演播系统高效情景课堂应用研究工作室</td>\n",
       "      <td>116.138726,24.303936</td>\n",
       "      <td>367.158</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科研机构;科研机构</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea                   address poiweight  \\\n",
       "0   B02F1020CB        西南           []                     学海路8号  0.566638   \n",
       "1   B02F101E1F         西           []  工业大道第23号(广东省梅州航道局梅县分局东南)  0.106723   \n",
       "2   B02F10R8WY         西           []                 学海路10-23号   0.14796   \n",
       "3   B0FFG93341         西           []                 学海路10号-27  0.142403   \n",
       "4   B02F10RBOA         西           []                学海路10-32附近  0.159994   \n",
       "5   B02F102LKN         西           []                  学海路16号附近  0.134708   \n",
       "6   B02F1043RV        东南           []     东山教育基地学子大道4号梅州市职业技术学校  0.073506   \n",
       "7   B02F101E1E         北           []                      东山大道   0.27591   \n",
       "8   B02F102AB2         西           []                 学海路398号附近  0.176757   \n",
       "9   B0FFLJV9GT         西           []      东山中学西校门侧泰丰综合楼首层1-19号  0.132918   \n",
       "10  B02F10360H        东北           []                       梅江区  0.158606   \n",
       "11  B0FFJKH4DF         西           []           学海路10-5号美家乐超市3楼  0.150525   \n",
       "12  B02F1043RZ         西           []         学海路30号(东山中学老校门对面)  0.140803   \n",
       "13  B0FFIQZO40         西           []           学海路与江边路交叉口东南50米  0.147757   \n",
       "14  B0FFGNR2NZ         西           []                泰丰综合楼3楼317  0.146334   \n",
       "15  B02F10REX8         西           []               东山大桥西侧(江边路)  0.286263   \n",
       "16  B02F103GFA         南           []          书山路与学海路交叉口东北150米  0.333479   \n",
       "17  B0FFGAAKVQ        东南           []             学子大道10西南方向60米  0.165794   \n",
       "18  B0FFK8X9ID         西           []           学海路与江边路交叉口东北50米  0.132602   \n",
       "19  B0FFHMV8CE         西           []                泰丰综合楼3楼301  0.146832   \n",
       "20  B0FFFAJ5WZ         西           []                 学海路10-24号  0.176702   \n",
       "21  B0FFF86P7J         西           []            东山教育基地学海路388号店   0.17643   \n",
       "22  B0FFLJFZPY        东北           []                      学子大道  0.214309   \n",
       "23  B02F102AB5         南           []                   书山路1号附近  0.105078   \n",
       "24  B02F1043S3         北           []            东山大道20正南方向110米   0.02982   \n",
       "25  B02F103GFB         南           []                     书山路1号      0.48   \n",
       "26  B0FFIG8SRJ         西           []            东山教育基地学海路258号店  0.261594   \n",
       "27  B0FFL6FIRD        东北           []                      学子大道  0.150498   \n",
       "28  B0FFFVOQ1H         北           []                金山办龙丰村学子大道  0.201422   \n",
       "29  B0FFLJFTQR        东南           []                      学子大道  0.137435   \n",
       "\n",
       "                   name              location distance  \\\n",
       "0                  东山中学  116.135537,24.305466  13.9261   \n",
       "1           梅州市东山升大补习学校  116.133354,24.305111  232.229   \n",
       "2                 泰丰综合楼  116.132854,24.305825  278.197   \n",
       "3                 东宪梅教育  116.132762,24.306044  290.762   \n",
       "4            中深教育(东中校区)  116.132753,24.306063  292.031   \n",
       "5            东山派出所状元桥分所  116.132514,24.306614   331.78   \n",
       "6       梅州市职业技术学校-翰荣实训楼  116.138629,24.304205  344.344   \n",
       "7               梅州市东山学校  116.136047,24.308846  365.845   \n",
       "8         广东省梅州航道局梅县区分局  116.131945,24.305773  369.607   \n",
       "9              学吧教育东中校区  116.133125,24.305083   255.54   \n",
       "10                  黄伍塘  116.137397,24.307619  291.424   \n",
       "11           一心教育(东中校区)  116.132920,24.305737  270.734   \n",
       "12             客通游船有限公司  116.132718,24.306136  297.093   \n",
       "13                 墨海教育  116.132857,24.305862  278.316   \n",
       "14                清大学习吧  116.132809,24.305759  282.132   \n",
       "15             梅江夜游东山码头  116.131920,24.305410  372.035   \n",
       "16           东山中学(剑英校区)  116.136934,24.301903   431.41   \n",
       "17              东山中学体育馆  116.137477,24.304686  216.028   \n",
       "18             梅州课外辅导王国  116.132705,24.306153  298.782   \n",
       "19                 好学教育  116.132656,24.306245  305.923   \n",
       "20                   优客  116.132819,24.305936  283.175   \n",
       "21                 食尚靓饮  116.132729,24.306142  296.155   \n",
       "22              微小玉创业基地  116.138294,24.307320  335.573   \n",
       "23          广东省梅县区食盐专卖局  116.137039,24.301496  477.722   \n",
       "24                龙丰村委会  116.134942,24.309601  451.552   \n",
       "25         梅州剑英图书馆(书山路)  116.137238,24.301272  507.788   \n",
       "26            兰州拉面(东中店)  116.132780,24.306011  288.337   \n",
       "27            艺韵梅小玉青年文化  116.138347,24.307554  355.405   \n",
       "28                  状元府  116.136992,24.309380  445.609   \n",
       "29  虚拟演播系统高效情景课堂应用研究工作室  116.138726,24.303936  367.158   \n",
       "\n",
       "                                      tel                         type  \n",
       "0                            0753-2222890                 科教文化服务;学校;中学  \n",
       "1                                      []             科教文化服务;培训机构;培训机构  \n",
       "2                                      []                商务住宅;楼宇;商务写字楼  \n",
       "3   0753-2277398;0753-2316866;18807533288             科教文化服务;培训机构;培训机构  \n",
       "4                             13750543601             科教文化服务;培训机构;培训机构  \n",
       "5                                      []         政府机构及社会团体;公检法机构;公安警察  \n",
       "6                                      []             科教文化服务;培训机构;培训机构  \n",
       "7                            0753-2221638                 科教文化服务;学校;中学  \n",
       "8                                      []    政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "9    0753-2188002;13727635350;18923002130             科教文化服务;培训机构;培训机构  \n",
       "10                                     []            地名地址信息;普通地名;村庄级地名  \n",
       "11                                     []         科教文化服务;科教文化场所;科教文化场所  \n",
       "12                           0753-2291199                   公司企业;公司;公司  \n",
       "13                                     []             科教文化服务;培训机构;培训机构  \n",
       "14                 4008185288;13509091314             科教文化服务;培训机构;培训机构  \n",
       "15                           0753-2291199             交通设施服务;港口码头;港口码头  \n",
       "16                                     []                 科教文化服务;学校;中学  \n",
       "17                                     []            体育休闲服务;运动场馆;综合体育馆  \n",
       "18                                     []             科教文化服务;培训机构;培训机构  \n",
       "19                            18318200747             科教文化服务;培训机构;培训机构  \n",
       "20                13826600721;18023515110                 餐饮服务;中餐厅;中餐厅  \n",
       "21                13823868531;13823888531                 餐饮服务;快餐厅;快餐厅  \n",
       "22                                     []               商务住宅;产业园区;产业园区  \n",
       "23                                     []    政府机构及社会团体;政府机关;区县级政府及事业单位  \n",
       "24                                     []  政府机构及社会团体;政府机关;乡镇以下级政府及事业单位  \n",
       "25                           0753-2243467               科教文化服务;图书馆;图书馆  \n",
       "26                                     []                餐饮服务;中餐厅;清真菜馆  \n",
       "27                                     []         科教文化服务;科教文化场所;科教文化场所  \n",
       "28                           0753-2882288                商务住宅;住宅区;住宅小区  \n",
       "29                                     []             科教文化服务;科研机构;科研机构  "
      ]
     },
     "execution_count": 78,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 这个我真不懂pd.json_normalize是啥玩意儿 另一种格式显示r.json()['regeocode']['pois']？？？\n",
    "pd.json_normalize(r.json()['regeocode']['pois'])   # pois：poi信息列表，请求参数 extensions 为 all 时返回如下内容"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 路径规划API是一套以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据，用于实现路径规划功能的开发。 \n",
    "\n",
    "> * 1、步行\n",
    "> * 2、公交车\n",
    "> * 3、驾车"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 步行路径规划\n",
    ">步行路径规划 API 可以规划100KM以内的步行通勤方案，并且返回通勤方案的数据\n",
    "\n",
    "> * 1、url:https://restapi.amap.com/v3/direction/walking?parameters    \n",
    "> * 2、requests.get()\n",
    "> * 3、必选参数：\n",
    ">> * A.key\n",
    ">> * B.origin（出发点（经度，纬度））\n",
    ">> * C.destination（目的地（经度，纬度））"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "#### 数据准备： \n",
    "origin = \"广东省梅州市梅县东山中学\"   ### 数据为结构化地址\n",
    "destination = \"广东省梅州市梅雁东山学校\"      ### +1"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "geocode(高德API_key,结构化地址)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 获取地理编码的函数:\n",
    "def geocode(key,address,city=None,batch=None)->str:\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"address\":address,\n",
    "        \"city\":city,\n",
    "        \"batch\":batch\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()['geocodes'][0]['location']         ### 字典取值的方法取出地理编码\n",
    "    return results\n",
    "    "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "先获取起始点和目的地的地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'116.135586,24.305583'"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "起始点_东山中学 = geocode(key,origin)      ### 调用函数，取实参\n",
    "起始点_东山中学"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'116.135564,24.305469'"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "目的地_东山学校 = geocode(key,destination)\n",
    "目的地_东山学校"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 步行地理规划的代码：\n",
    "url = \"https://restapi.amap.com/v3/direction/walking?parameters\"\n",
    "params = {\n",
    "    \"key\":key,\n",
    "    \"origin\":起始点_东山中学,\n",
    "    \"destination\":目的地_东山学校\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'route': {'origin': '116.135586,24.305583',\n",
       "  'destination': '116.135564,24.305469',\n",
       "  'paths': [{'distance': '10',\n",
       "    'duration': '8',\n",
       "    'steps': [{'instruction': '向南步行10米到达目的地',\n",
       "      'orientation': '南',\n",
       "      'road': [],\n",
       "      'distance': '10',\n",
       "      'duration': '8',\n",
       "      'polyline': '116.135729,24.305534;116.13572,24.305503;116.135707,24.305443',\n",
       "      'action': [],\n",
       "      'assistant_action': '到达目的地',\n",
       "      'walk_type': '0'}]}]}}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': '10',\n",
       "  'duration': '8',\n",
       "  'steps': [{'instruction': '向南步行10米到达目的地',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '10',\n",
       "    'duration': '8',\n",
       "    'polyline': '116.135729,24.305534;116.13572,24.305503;116.135707,24.305443',\n",
       "    'action': [],\n",
       "    'assistant_action': '到达目的地',\n",
       "    'walk_type': '0'}]}]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['route']['paths']     ### paths是步行方案的意思"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 公交路径规划\n",
    ">公交路径规划 API 可以规划综合各类公共（火车、公交、地铁）交通方式的通勤方案，并且返回通勤方案的数据。\n",
    "\n",
    "> * 1、url:https://restapi.amap.com/v3/direction/transit/integrated?parameters\n",
    "> * 2、requests.get()\n",
    "> * 3、必选参数：\n",
    ">> * A.key\n",
    ">> * B.origin（出发点（经度，纬度））\n",
    ">> * C.destination（目的地（经度，纬度））\n",
    ">> * D.city城市/跨城规划时的起点城市\n",
    ">>> 规则;目前支持市内公交换乘/跨城公交的起点城市。可选值：城市名称/citycode\n",
    ">> * E.cityd 跨城公交规划时的终点城市(跨城必选)\n",
    ">> * F.strategy 公交换乘策略\n",
    ">>> 规则：可选值：0：最快捷模式 /1：最经济模式 /2：最少换乘模式 /3：最少步行模式 /5：不乘地铁模式\n",
    ">> * G.date 出发日期\n",
    ">>> 规则：根据出发时间和日期，筛选可乘坐的公交路线，格式示例：date=2014-3-19。\n",
    ">> * H.time 出发时间\n",
    ">>> 规则：根据出发时间和日期，筛选可乘坐的公交路线，格式示例：time=22:34。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "def bus(key,origin,destination,city,cityd,strategy):\n",
    "    bus_url = \"https://restapi.amap.com/v3/direction/transit/integrated?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"city\":city,\n",
    "        \"cityd\":cityd,\n",
    "        \"strategy\":strategy\n",
    "    }\n",
    "    r = requests.get(bus_url,params)\n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '5',\n",
       " 'route': {'origin': '113.679287,23.632575',\n",
       "  'destination': '113.495460,23.451063',\n",
       "  'distance': '35588',\n",
       "  'taxi_cost': '143',\n",
       "  'transits': [{'cost': '8.0',\n",
       "    'duration': '6993',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '3645',\n",
       "    'distance': '37022',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679588,23.632856',\n",
       "       'destination': '113.677689,23.648291',\n",
       "       'distance': '2553',\n",
       "       'duration': '2188',\n",
       "       'steps': [{'instruction': '步行92米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '92',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679588,23.632856;113.679588,23.633173;113.679588,23.633251;113.679619,23.633650;113.679649,23.633690',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行197米左转',\n",
       "         'road': '博学路',\n",
       "         'distance': '197',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679649,23.633690;113.679550,23.633966;113.679375,23.634357;113.679253,23.634480;113.679062,23.634657;113.678932,23.634762;113.678711,23.634918;113.678635,23.634970;113.678596,23.635031;113.678558,23.635109',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行163米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '163',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678558,23.635109;113.677856,23.635092;113.677612,23.635035;113.677536,23.634996;113.677330,23.634857;113.677086,23.634670',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行33米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677086,23.634666;113.677025,23.634701;113.676918,23.634718;113.676857,23.634705;113.676796,23.634661',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山路步行1265米右转',\n",
       "         'road': '中山路',\n",
       "         'distance': '1265',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676796,23.634657;113.675270,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674988,23.636997;113.675385,23.637886;113.675430,23.638042;113.675522,23.638659;113.675522,23.638998;113.675507,23.639132;113.675453,23.639311;113.675331,23.639584;113.675110,23.640036;113.675003,23.640186;113.674316,23.641024;113.673363,23.642139;113.672981,23.642534;113.672173,23.643303;113.671425,23.644045',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行760米向左前方行走',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '760',\n",
       "         'duration': [],\n",
       "         'polyline': '113.671425,23.644045;113.671638,23.644163;113.673103,23.644970;113.673950,23.645426;113.674370,23.645651;113.675461,23.646276;113.675964,23.646637;113.676407,23.647018;113.677444,23.647964;113.677498,23.648012',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行8米右转',\n",
       "         'road': [],\n",
       "         'distance': '8',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677498,23.648012;113.677444,23.648064',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行35米到达三层路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677444,23.648069;113.677689,23.648291',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达三层路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069692027',\n",
       "          'location': '113.677597,23.648211'},\n",
       "         'arrival_stop': {'name': '地铁从化客运站(姓钟围)',\n",
       "          'id': '900000069692047',\n",
       "          'location': '113.594136,23.530360'},\n",
       "         'name': '从11路(良口客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069692',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '18480',\n",
       "         'duration': '3095',\n",
       "         'polyline': '113.677597,23.648211;113.677376,23.648016;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.674744,23.645973;113.673363,23.645201;113.673004,23.645004;113.671715,23.644299;113.671715,23.644293;113.670654,23.643707;113.669968,23.643330;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660278,23.632727;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658226,23.631102;113.657707,23.630760;113.657425,23.630590;113.657120,23.630413;113.657118,23.630408;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.648924,23.624327;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644414,23.621871;113.644410,23.621871;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638329,23.620156;113.638325,23.620156;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632960,23.615768;113.632960,23.615764;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630829,23.610747;113.630729,23.610373;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628841,23.602378;113.628841,23.602374;113.628477,23.600820;113.628134,23.599293;113.627969,23.598681;113.627951,23.598633;113.627882,23.598433;113.627782,23.598203;113.627635,23.597921;113.627487,23.597682;113.627279,23.597400;113.627040,23.597140;113.626102,23.596228;113.625647,23.595755;113.624996,23.595139;113.624089,23.594327;113.623164,23.593433;113.622882,23.593147;113.622734,23.592982;113.622378,23.592591;113.622053,23.592188;113.621875,23.591957;113.621693,23.591706;113.621688,23.591706;113.621576,23.591545;113.621289,23.591133;113.621124,23.590864;113.620734,23.590165;113.620603,23.589913;113.619475,23.587643;113.619384,23.587461;113.619384,23.587457;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582387;113.617578,23.582383;113.617552,23.581884;113.617474,23.580651;113.617474,23.580590;113.617474,23.580516;113.617483,23.580204;113.617496,23.579848;113.617556,23.579384;113.617674,23.578741;113.617760,23.578316;113.617791,23.578138;113.618043,23.576905;113.618082,23.576723;113.618095,23.576658;113.618116,23.576558;113.618190,23.576189;113.618346,23.575378;113.618420,23.574809;113.618424,23.574497;113.618407,23.574158;113.618281,23.573481;113.618264,23.573381;113.618229,23.573194;113.618229,23.573190;113.618134,23.572730;113.618077,23.572431;113.618034,23.572153;113.618008,23.571901;113.617990,23.571445;113.618034,23.570911;113.618155,23.570013;113.618190,23.569787;113.618312,23.568967;113.618333,23.568824;113.618464,23.567951;113.618485,23.567786;113.618646,23.566697;113.618759,23.565946;113.618793,23.565673;113.618828,23.565473;113.618845,23.565365;113.618872,23.565182;113.618893,23.565013;113.618902,23.564965;113.619123,23.563464;113.619175,23.563155;113.619188,23.563064;113.619262,23.562522;113.619288,23.562109;113.619262,23.561775;113.619232,23.561602;113.619171,23.561385;113.619010,23.561011;113.618793,23.560673;113.618646,23.560495;113.618142,23.559970;113.617943,23.559766;113.616970,23.558819;113.615729,23.557600;113.615556,23.557422;113.615555,23.557423;113.615356,23.557222;113.615105,23.556976;113.614723,23.556602;113.614052,23.555933;113.613762,23.555609;113.613365,23.555122;113.613190,23.554810;113.613129,23.554688;113.613052,23.554518;113.612823,23.554016;113.612648,23.553556;113.612625,23.553484;113.612602,23.553438;113.612549,23.553284;113.612282,23.552565;113.612068,23.551991;113.611961,23.551771;113.611816,23.551476;113.611557,23.551102;113.611328,23.550846;113.611069,23.550591;113.610435,23.550077;113.610260,23.549927;113.610256,23.549926;113.609961,23.549688;113.609462,23.549288;113.609206,23.549063;113.609054,23.548924;113.608841,23.548676;113.608455,23.548498;113.606888,23.547691;113.606845,23.547669;113.606445,23.547491;113.604735,23.546732;113.604258,23.546549;113.603850,23.546424;113.603303,23.546315;113.602856,23.546276;113.602331,23.546280;113.601775,23.546289;113.601445,23.546293;113.601037,23.546324;113.600898,23.546328;113.600543,23.546345;113.600299,23.546354;113.599492,23.546393;113.599071,23.546372;113.598633,23.546350;113.598485,23.546345;113.597431,23.546293;113.597292,23.546285;113.596784,23.546215;113.596259,23.546141;113.595929,23.546085;113.595829,23.546059;113.595833,23.546059;113.595842,23.546063;113.595838,23.546063;113.595816,23.546055;113.595694,23.546007;113.595564,23.545872;113.595464,23.545716;113.595430,23.545612;113.595395,23.545326;113.595421,23.545178;113.595512,23.544926;113.595673,23.544536;113.595864,23.544071;113.596029,23.543698;113.596133,23.543472;113.596181,23.543372;113.596181,23.543368;113.596385,23.542938;113.596571,23.542474;113.596641,23.542292;113.596732,23.541897;113.596793,23.540833;113.596801,23.540686;113.596849,23.539996;113.596875,23.539618;113.596940,23.539149;113.596979,23.538963;113.597044,23.538598;113.597127,23.538147;113.597331,23.537396;113.597491,23.536810;113.597622,23.536345;113.597726,23.535994;113.597782,23.535790;113.597821,23.535660;113.597921,23.535308;113.597960,23.535174;113.597309,23.534531;113.597240,23.534457;113.597240,23.534453;113.596385,23.533550;113.595707,23.532895;113.595521,23.532713;113.593746,23.531024;113.593303,23.530686;113.592305,23.530000;113.591441,23.529436;113.591215,23.529306;113.590842,23.529058;113.589913,23.528459;113.589280,23.528021;113.589418,23.527843;113.589701,23.528012;113.590165,23.528325;113.590768,23.528741;113.591194,23.529049;113.591411,23.529167;113.593051,23.530286;113.593329,23.530482;113.593572,23.530712;113.593798,23.530590;113.593989,23.530460;113.594136,23.530360',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1930',\n",
       "         'via_num': '20',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069692010',\n",
       "           'location': '113.671715,23.644299'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069692011',\n",
       "           'location': '113.657120,23.630413'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000069692028',\n",
       "           'location': '113.644414,23.621871'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069692038',\n",
       "           'location': '113.638329,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069692029',\n",
       "           'location': '113.632960,23.615768'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000069692039',\n",
       "           'location': '113.630829,23.610747'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000069692030',\n",
       "           'location': '113.628841,23.602378'},\n",
       "          {'name': '新华站',\n",
       "           'id': '900000069692040',\n",
       "           'location': '113.621693,23.591706'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000069692041',\n",
       "           'location': '113.619384,23.587461'},\n",
       "          {'name': '南洋理工职业学院',\n",
       "           'id': '900000069692016',\n",
       "           'location': '113.617578,23.582387'},\n",
       "          {'name': '江浦社区',\n",
       "           'id': '900000069692042',\n",
       "           'location': '113.618229,23.573194'},\n",
       "          {'name': '江村',\n",
       "           'id': '900000069692043',\n",
       "           'location': '113.618312,23.568967'},\n",
       "          {'name': '水利学院',\n",
       "           'id': '900000069692044',\n",
       "           'location': '113.619188,23.563064'},\n",
       "          {'name': '沙塱村',\n",
       "           'id': '900000069692017',\n",
       "           'location': '113.615556,23.557422'},\n",
       "          {'name': '凤院路口',\n",
       "           'id': '900000069692018',\n",
       "           'location': '113.610260,23.549927'},\n",
       "          {'name': '大江路口',\n",
       "           'id': '900000069692045',\n",
       "           'location': '113.602331,23.546280'},\n",
       "          {'name': '河东广场',\n",
       "           'id': '900000069692023',\n",
       "           'location': '113.595829,23.546059'},\n",
       "          {'name': '河东市场',\n",
       "           'id': '900000069692046',\n",
       "           'location': '113.596181,23.543372'},\n",
       "          {'name': '七星路口',\n",
       "           'id': '900000069692024',\n",
       "           'location': '113.596801,23.540686'},\n",
       "          {'name': '联星西华站',\n",
       "           'id': '900000069692037',\n",
       "           'location': '113.597240,23.534457'}]},\n",
       "        {'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069254022',\n",
       "          'location': '113.677689,23.648294'},\n",
       "         'arrival_stop': {'name': '地铁从化客运站(姓钟围)',\n",
       "          'id': '900000069254055',\n",
       "          'location': '113.594258,23.530282'},\n",
       "         'name': '从12路(吕田客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069254',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '18715',\n",
       "         'duration': '3131',\n",
       "         'polyline': '113.677689,23.648294;113.677687,23.648290;113.677378,23.648016;113.676372,23.647088;113.675964,23.646745;113.675734,23.646567;113.675464,23.646385;113.675095,23.646172;113.673003,23.645004;113.671771,23.644327;113.671771,23.644323;113.669961,23.643329;113.669162,23.642882;113.668776,23.642674;113.668598,23.642578;113.667001,23.641693;113.666141,23.641172;113.665317,23.640564;113.665252,23.640512;113.665017,23.640299;113.664774,23.640065;113.664549,23.639813;113.664410,23.639661;113.664201,23.639401;113.663928,23.639019;113.663576,23.638451;113.663359,23.638021;113.662322,23.635933;113.661949,23.635182;113.661454,23.634266;113.661224,23.633898;113.660842,23.633381;113.660686,23.633190;113.660252,23.632704;113.659722,23.632170;113.659366,23.631879;113.659258,23.631793;113.658984,23.631589;113.658893,23.631519;113.658212,23.631102;113.657708,23.630760;113.657426,23.630590;113.656984,23.630330;113.656984,23.630326;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.652370,23.627261;113.652114,23.627062;113.651510,23.626654;113.651363,23.626554;113.651050,23.626315;113.650573,23.625885;113.650091,23.625378;113.649970,23.625269;113.649822,23.625143;113.649766,23.625013;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644661,23.621905;113.644669,23.621906;113.644666,23.621905;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638472,23.620234;113.638355,23.620174;113.638355,23.620169;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632917,23.615699;113.632912,23.615699;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630825,23.610729;113.630825,23.610725;113.630764,23.610516;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628880,23.602548;113.628880,23.602543;113.628477,23.600820;113.628134,23.599293;113.627969,23.598681;113.627951,23.598633;113.627882,23.598433;113.627782,23.598203;113.627635,23.597921;113.627487,23.597682;113.627279,23.597400;113.627040,23.597140;113.626102,23.596228;113.625647,23.595755;113.624996,23.595139;113.624089,23.594327;113.623164,23.593433;113.622882,23.593147;113.622734,23.592982;113.622378,23.592591;113.622053,23.592188;113.621875,23.591957;113.621684,23.591693;113.621680,23.591693;113.621576,23.591545;113.621289,23.591133;113.621124,23.590864;113.620734,23.590165;113.620603,23.589913;113.619475,23.587643;113.619392,23.587470;113.619388,23.587470;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582370;113.617552,23.581884;113.617474,23.580651;113.617474,23.580590;113.617474,23.580516;113.617483,23.580204;113.617496,23.579848;113.617556,23.579384;113.617674,23.578741;113.617760,23.578316;113.617791,23.578138;113.618043,23.576905;113.618082,23.576723;113.618095,23.576658;113.618116,23.576558;113.618190,23.576189;113.618346,23.575378;113.618420,23.574809;113.618424,23.574497;113.618407,23.574158;113.618281,23.573481;113.618264,23.573381;113.618212,23.573108;113.618210,23.573120;113.618210,23.573116;113.618134,23.572729;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618149,23.570036;113.618187,23.569813;113.618317,23.568937;113.618316,23.568937;113.618333,23.568824;113.618464,23.567951;113.618485,23.567786;113.618646,23.566697;113.618759,23.565946;113.618793,23.565673;113.618828,23.565473;113.618845,23.565365;113.618872,23.565182;113.618893,23.565013;113.618902,23.564965;113.619123,23.563464;113.619175,23.563155;113.619188,23.563056;113.619262,23.562522;113.619288,23.562109;113.619262,23.561775;113.619232,23.561602;113.619171,23.561385;113.619010,23.561011;113.618793,23.560673;113.618646,23.560495;113.618142,23.559970;113.617943,23.559766;113.616970,23.558819;113.615729,23.557600;113.615534,23.557400;113.615534,23.557396;113.615360,23.557222;113.615100,23.556975;113.614718,23.556602;113.614054,23.555933;113.613759,23.555608;113.613372,23.555122;113.613129,23.554688;113.613099,23.554622;113.612826,23.554015;113.612652,23.553555;113.612626,23.553485;113.612609,23.553438;113.612552,23.553286;113.612287,23.552565;113.612070,23.551992;113.611966,23.551771;113.611810,23.551476;113.611554,23.551102;113.611328,23.550846;113.611063,23.550590;113.610451,23.550087;113.610451,23.550091;113.610451,23.550087;113.610435,23.550077;113.609962,23.549686;113.609459,23.549290;113.609207,23.549063;113.609055,23.548923;113.608841,23.548676;113.608452,23.548498;113.607582,23.548014;113.606888,23.547691;113.606842,23.547668;113.606445,23.547491;113.604736,23.546732;113.604256,23.546549;113.603851,23.546425;113.603310,23.546316;113.603050,23.546289;113.602783,23.546267;113.602188,23.546284;113.602188,23.546280;113.601173,23.546316;113.600891,23.546324;113.600777,23.546329;113.600304,23.546352;113.599495,23.546392;113.599075,23.546371;113.598633,23.546349;113.598442,23.546337;113.597534,23.546303;113.597290,23.546284;113.596779,23.546215;113.596260,23.546143;113.595970,23.546103;113.595856,23.546066;113.595855,23.546063;113.595816,23.546055;113.595694,23.546007;113.595564,23.545872;113.595464,23.545716;113.595430,23.545612;113.595395,23.545326;113.595421,23.545178;113.595512,23.544926;113.595673,23.544536;113.595864,23.544071;113.596029,23.543698;113.596133,23.543472;113.596385,23.542938;113.596571,23.542474;113.596641,23.542292;113.596732,23.541897;113.596793,23.540833;113.596810,23.540586;113.596849,23.539996;113.596892,23.539462;113.596979,23.538963;113.597044,23.538598;113.597127,23.538147;113.597331,23.537396;113.597491,23.536810;113.597622,23.536345;113.597726,23.535994;113.597782,23.535790;113.597821,23.535660;113.597921,23.535308;113.597960,23.535174;113.597309,23.534531;113.597231,23.534444;113.596385,23.533550;113.595707,23.532895;113.595521,23.532713;113.593746,23.531024;113.593303,23.530686;113.592305,23.530000;113.591441,23.529436;113.591215,23.529306;113.590842,23.529058;113.589540,23.528203;113.589701,23.528012;113.590165,23.528325;113.590768,23.528741;113.591194,23.529049;113.591411,23.529167;113.593051,23.530286;113.593121,23.530294;113.593567,23.530597;113.593645,23.530603;113.593798,23.530590;113.593989,23.530460;113.594258,23.530282',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1900',\n",
       "         'via_num': '19',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069254023',\n",
       "           'location': '113.671771,23.644327'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069254024',\n",
       "           'location': '113.656984,23.630330'},\n",
       "          {'name': '牛步径',\n",
       "           'id': '900000069254041',\n",
       "           'location': '113.644661,23.621905'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069254047',\n",
       "           'location': '113.638355,23.620174'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069254025',\n",
       "           'location': '113.632917,23.615699'},\n",
       "          {'name': '云星村站',\n",
       "           'id': '900000069254048',\n",
       "           'location': '113.630825,23.610729'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000069254026',\n",
       "           'location': '113.628880,23.602548'},\n",
       "          {'name': '新华站',\n",
       "           'id': '900000069254049',\n",
       "           'location': '113.621684,23.591693'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000069254027',\n",
       "           'location': '113.619392,23.587470'},\n",
       "          {'name': '南洋理工职业学院',\n",
       "           'id': '900000069254050',\n",
       "           'location': '113.617578,23.582370'},\n",
       "          {'name': '江埔社区',\n",
       "           'id': '900000069254028',\n",
       "           'location': '113.618212,23.573108'},\n",
       "          {'name': '江村',\n",
       "           'id': '900000069254051',\n",
       "           'location': '113.618317,23.568937'},\n",
       "          {'name': '水利学院',\n",
       "           'id': '900000069254052',\n",
       "           'location': '113.619188,23.563056'},\n",
       "          {'name': '沙塱村',\n",
       "           'id': '900000069254053',\n",
       "           'location': '113.615534,23.557400'},\n",
       "          {'name': '凤院路口',\n",
       "           'id': '900000069254029',\n",
       "           'location': '113.610451,23.550087'},\n",
       "          {'name': '大江路口',\n",
       "           'id': '900000069254030',\n",
       "           'location': '113.602188,23.546284'},\n",
       "          {'name': '河东广场',\n",
       "           'id': '900000069254031',\n",
       "           'location': '113.595856,23.546066'},\n",
       "          {'name': '七星路口',\n",
       "           'id': '900000069254032',\n",
       "           'location': '113.596810,23.540586'},\n",
       "          {'name': '联星西华站',\n",
       "           'id': '900000069254054',\n",
       "           'location': '113.597231,23.534444'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.594139,23.530359',\n",
       "       'destination': '113.594719,23.531767',\n",
       "       'distance': '274',\n",
       "       'duration': '234',\n",
       "       'steps': [{'instruction': '沿从城大道步行40米左转',\n",
       "         'road': '从城大道',\n",
       "         'distance': '40',\n",
       "         'duration': [],\n",
       "         'polyline': '113.594139,23.530359;113.593994,23.530460;113.593819,23.530577',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行92米左转',\n",
       "         'road': [],\n",
       "         'distance': '92',\n",
       "         'duration': [],\n",
       "         'polyline': '113.593811,23.530582;113.593697,23.530485;113.593513,23.530508;113.593964,23.530838',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行142米到达从化客运站',\n",
       "         'road': [],\n",
       "         'distance': '142',\n",
       "         'duration': [],\n",
       "         'polyline': '113.593964,23.530838;113.593857,23.530937;113.594650,23.531696;113.594719,23.531767',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达从化客运站'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '从化客运站',\n",
       "          'id': '900000074702002',\n",
       "          'location': '113.594721,23.531769'},\n",
       "         'arrival_stop': {'name': '太平',\n",
       "          'id': '900000074702005',\n",
       "          'location': '113.491955,23.452090'},\n",
       "         'name': '地铁14号线(东风--嘉禾望岗)',\n",
       "         'id': '900000074702',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '14897',\n",
       "         'duration': '774',\n",
       "         'polyline': '113.594721,23.531769;113.593793,23.530889;113.593514,23.530681;113.582531,23.523276;113.581939,23.522822;113.580606,23.521696;113.577554,23.519552;113.577306,23.519352;113.576647,23.518756;113.576100,23.518162;113.575851,23.517843;113.575586,23.517468;113.575373,23.517137;113.571854,23.511367;113.571405,23.510602;113.571158,23.510226;113.570946,23.509891;113.570794,23.509630;113.570515,23.509158;113.569879,23.508135;113.569313,23.507131;113.568589,23.506017;113.568113,23.505381;113.567879,23.505069;113.567466,23.504621;113.567032,23.504215;113.566611,23.503881;113.566249,23.503674;113.565962,23.503527;113.565583,23.503355;113.564980,23.503094;113.562662,23.502186;113.561001,23.501509;113.560204,23.501199;113.559508,23.500933;113.557021,23.500094;113.556656,23.499905;113.556307,23.499664;113.555753,23.499216;113.554867,23.498542;113.554105,23.498082;113.552442,23.497174;113.551145,23.496444;113.550153,23.495930;113.548415,23.494993;113.546750,23.494078;113.545995,23.493606;113.545431,23.493214;113.544218,23.492366;113.543013,23.491516;113.542268,23.491042;113.541798,23.490826;113.541394,23.490688;113.537759,23.489749;113.534858,23.489004;113.534189,23.488774;113.533639,23.488559;113.533235,23.488365;113.532487,23.487938;113.531679,23.487383;113.531354,23.487147;113.531054,23.486862;113.530690,23.486477;113.530533,23.486275;113.530371,23.486068;113.529356,23.484737;113.528785,23.484076;113.528050,23.483065;113.527645,23.482451;113.527383,23.482099;113.525249,23.479331;113.524824,23.478821;113.524484,23.478512;113.524171,23.478277;113.523707,23.477996;113.520505,23.476234;113.519798,23.475886;113.518851,23.475543;113.518173,23.475343;113.517396,23.475101;113.516620,23.474853;113.514628,23.474225;113.513654,23.473944;113.512313,23.473523;113.510575,23.472981;113.510025,23.472795;113.509156,23.472477;113.508554,23.472225;113.507918,23.471936;113.506245,23.471060;113.502355,23.469038;113.501282,23.468473;113.500901,23.468254;113.500540,23.468019;113.500190,23.467722;113.499845,23.467380;113.499424,23.466854;113.499246,23.466540;113.498897,23.465841;113.498032,23.463973;113.496780,23.461391;113.496584,23.460998;113.496135,23.460378;113.495288,23.459364;113.494274,23.458157;113.493617,23.457262;113.493341,23.456794;113.493016,23.456129;113.492764,23.455544;113.492576,23.454966;113.492361,23.454088;113.492091,23.452705;113.491955,23.452090',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2235',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '赤草',\n",
       "           'id': '900000074702003',\n",
       "           'location': '113.560204,23.501199'},\n",
       "          {'name': '神岗',\n",
       "           'id': '900000074702004',\n",
       "           'location': '113.517396,23.475101'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.594101,23.530722'},\n",
       "      'exit': {'name': 'B口', 'location': '113.492523,23.453032'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.491959,23.452087',\n",
       "       'destination': '113.495598,23.450920',\n",
       "       'distance': '818',\n",
       "       'duration': '701',\n",
       "       'steps': [{'instruction': '步行166米左转',\n",
       "         'road': [],\n",
       "         'distance': '166',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.452087;113.492035,23.452438;113.492371,23.452387;113.492516,23.453030;113.492332,23.453068',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿广从南路辅路步行204米左转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '204',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492332,23.453068;113.492226,23.452461;113.492096,23.451880;113.491959,23.451250',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行51米左转',\n",
       "         'road': [],\n",
       "         'distance': '51',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.451246;113.492020,23.451199;113.492073,23.451120;113.492104,23.450985;113.492088,23.450829',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿华软大道步行250米右转',\n",
       "         'road': '华软大道',\n",
       "         'distance': '250',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492088,23.450825;113.492241,23.450804;113.492798,23.450689;113.493095,23.450647;113.493675,23.450533;113.494514,23.450369',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行29米右转',\n",
       "         'road': [],\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494514,23.450365;113.494514,23.450304;113.494576,23.450260;113.494652,23.450270;113.494690,23.450325',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿求知路步行15米左转',\n",
       "         'road': '求知路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494690,23.450325;113.494843,23.450300',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行103米',\n",
       "         'road': '博学路',\n",
       "         'distance': '103',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494843,23.450294;113.495323,23.450699;113.495598,23.450920',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '5.0',\n",
       "    'duration': '8872',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '3476',\n",
       "    'distance': '38033',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679588,23.632856',\n",
       "       'destination': '113.677689,23.648291',\n",
       "       'distance': '2553',\n",
       "       'duration': '2188',\n",
       "       'steps': [{'instruction': '步行92米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '92',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679588,23.632856;113.679588,23.633173;113.679588,23.633251;113.679619,23.633650;113.679649,23.633690',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行197米左转',\n",
       "         'road': '博学路',\n",
       "         'distance': '197',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679649,23.633690;113.679550,23.633966;113.679375,23.634357;113.679253,23.634480;113.679062,23.634657;113.678932,23.634762;113.678711,23.634918;113.678635,23.634970;113.678596,23.635031;113.678558,23.635109',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行163米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '163',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678558,23.635109;113.677856,23.635092;113.677612,23.635035;113.677536,23.634996;113.677330,23.634857;113.677086,23.634670',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行33米右转',\n",
       "         'road': '博学路',\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677086,23.634666;113.677025,23.634701;113.676918,23.634718;113.676857,23.634705;113.676796,23.634661',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山路步行1265米右转',\n",
       "         'road': '中山路',\n",
       "         'distance': '1265',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676796,23.634657;113.675270,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674988,23.636997;113.675385,23.637886;113.675430,23.638042;113.675522,23.638659;113.675522,23.638998;113.675507,23.639132;113.675453,23.639311;113.675331,23.639584;113.675110,23.640036;113.675003,23.640186;113.674316,23.641024;113.673363,23.642139;113.672981,23.642534;113.672173,23.643303;113.671425,23.644045',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行760米向左前方行走',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '760',\n",
       "         'duration': [],\n",
       "         'polyline': '113.671425,23.644045;113.671638,23.644163;113.673103,23.644970;113.673950,23.645426;113.674370,23.645651;113.675461,23.646276;113.675964,23.646637;113.676407,23.647018;113.677444,23.647964;113.677498,23.648012',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行8米右转',\n",
       "         'road': [],\n",
       "         'distance': '8',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677498,23.648012;113.677444,23.648064',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿温泉大道步行35米到达三层路口',\n",
       "         'road': '温泉大道',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.677444,23.648069;113.677689,23.648291',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达三层路口'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069254022',\n",
       "          'location': '113.677689,23.648294'},\n",
       "         'arrival_stop': {'name': '地铁从化客运站(姓钟围)',\n",
       "          'id': '900000069254055',\n",
       "          'location': '113.594258,23.530282'},\n",
       "         'name': '从12路(吕田客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069254',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '18715',\n",
       "         'duration': '3131',\n",
       "         'polyline': '113.677689,23.648294;113.677687,23.648290;113.677378,23.648016;113.676372,23.647088;113.675964,23.646745;113.675734,23.646567;113.675464,23.646385;113.675095,23.646172;113.673003,23.645004;113.671771,23.644327;113.671771,23.644323;113.669961,23.643329;113.669162,23.642882;113.668776,23.642674;113.668598,23.642578;113.667001,23.641693;113.666141,23.641172;113.665317,23.640564;113.665252,23.640512;113.665017,23.640299;113.664774,23.640065;113.664549,23.639813;113.664410,23.639661;113.664201,23.639401;113.663928,23.639019;113.663576,23.638451;113.663359,23.638021;113.662322,23.635933;113.661949,23.635182;113.661454,23.634266;113.661224,23.633898;113.660842,23.633381;113.660686,23.633190;113.660252,23.632704;113.659722,23.632170;113.659366,23.631879;113.659258,23.631793;113.658984,23.631589;113.658893,23.631519;113.658212,23.631102;113.657708,23.630760;113.657426,23.630590;113.656984,23.630330;113.656984,23.630326;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.652370,23.627261;113.652114,23.627062;113.651510,23.626654;113.651363,23.626554;113.651050,23.626315;113.650573,23.625885;113.650091,23.625378;113.649970,23.625269;113.649822,23.625143;113.649766,23.625013;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644661,23.621905;113.644669,23.621906;113.644666,23.621905;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638472,23.620234;113.638355,23.620174;113.638355,23.620169;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632917,23.615699;113.632912,23.615699;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630825,23.610729;113.630825,23.610725;113.630764,23.610516;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628880,23.602548;113.628880,23.602543;113.628477,23.600820;113.628134,23.599293;113.627969,23.598681;113.627951,23.598633;113.627882,23.598433;113.627782,23.598203;113.627635,23.597921;113.627487,23.597682;113.627279,23.597400;113.627040,23.597140;113.626102,23.596228;113.625647,23.595755;113.624996,23.595139;113.624089,23.594327;113.623164,23.593433;113.622882,23.593147;113.622734,23.592982;113.622378,23.592591;113.622053,23.592188;113.621875,23.591957;113.621684,23.591693;113.621680,23.591693;113.621576,23.591545;113.621289,23.591133;113.621124,23.590864;113.620734,23.590165;113.620603,23.589913;113.619475,23.587643;113.619392,23.587470;113.619388,23.587470;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582370;113.617552,23.581884;113.617474,23.580651;113.617474,23.580590;113.617474,23.580516;113.617483,23.580204;113.617496,23.579848;113.617556,23.579384;113.617674,23.578741;113.617760,23.578316;113.617791,23.578138;113.618043,23.576905;113.618082,23.576723;113.618095,23.576658;113.618116,23.576558;113.618190,23.576189;113.618346,23.575378;113.618420,23.574809;113.618424,23.574497;113.618407,23.574158;113.618281,23.573481;113.618264,23.573381;113.618212,23.573108;113.618210,23.573120;113.618210,23.573116;113.618134,23.572729;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618149,23.570036;113.618187,23.569813;113.618317,23.568937;113.618316,23.568937;113.618333,23.568824;113.618464,23.567951;113.618485,23.567786;113.618646,23.566697;113.618759,23.565946;113.618793,23.565673;113.618828,23.565473;113.618845,23.565365;113.618872,23.565182;113.618893,23.565013;113.618902,23.564965;113.619123,23.563464;113.619175,23.563155;113.619188,23.563056;113.619262,23.562522;113.619288,23.562109;113.619262,23.561775;113.619232,23.561602;113.619171,23.561385;113.619010,23.561011;113.618793,23.560673;113.618646,23.560495;113.618142,23.559970;113.617943,23.559766;113.616970,23.558819;113.615729,23.557600;113.615534,23.557400;113.615534,23.557396;113.615360,23.557222;113.615100,23.556975;113.614718,23.556602;113.614054,23.555933;113.613759,23.555608;113.613372,23.555122;113.613129,23.554688;113.613099,23.554622;113.612826,23.554015;113.612652,23.553555;113.612626,23.553485;113.612609,23.553438;113.612552,23.553286;113.612287,23.552565;113.612070,23.551992;113.611966,23.551771;113.611810,23.551476;113.611554,23.551102;113.611328,23.550846;113.611063,23.550590;113.610451,23.550087;113.610451,23.550091;113.610451,23.550087;113.610435,23.550077;113.609962,23.549686;113.609459,23.549290;113.609207,23.549063;113.609055,23.548923;113.608841,23.548676;113.608452,23.548498;113.607582,23.548014;113.606888,23.547691;113.606842,23.547668;113.606445,23.547491;113.604736,23.546732;113.604256,23.546549;113.603851,23.546425;113.603310,23.546316;113.603050,23.546289;113.602783,23.546267;113.602188,23.546284;113.602188,23.546280;113.601173,23.546316;113.600891,23.546324;113.600777,23.546329;113.600304,23.546352;113.599495,23.546392;113.599075,23.546371;113.598633,23.546349;113.598442,23.546337;113.597534,23.546303;113.597290,23.546284;113.596779,23.546215;113.596260,23.546143;113.595970,23.546103;113.595856,23.546066;113.595855,23.546063;113.595816,23.546055;113.595694,23.546007;113.595564,23.545872;113.595464,23.545716;113.595430,23.545612;113.595395,23.545326;113.595421,23.545178;113.595512,23.544926;113.595673,23.544536;113.595864,23.544071;113.596029,23.543698;113.596133,23.543472;113.596385,23.542938;113.596571,23.542474;113.596641,23.542292;113.596732,23.541897;113.596793,23.540833;113.596810,23.540586;113.596849,23.539996;113.596892,23.539462;113.596979,23.538963;113.597044,23.538598;113.597127,23.538147;113.597331,23.537396;113.597491,23.536810;113.597622,23.536345;113.597726,23.535994;113.597782,23.535790;113.597821,23.535660;113.597921,23.535308;113.597960,23.535174;113.597309,23.534531;113.597231,23.534444;113.596385,23.533550;113.595707,23.532895;113.595521,23.532713;113.593746,23.531024;113.593303,23.530686;113.592305,23.530000;113.591441,23.529436;113.591215,23.529306;113.590842,23.529058;113.589540,23.528203;113.589701,23.528012;113.590165,23.528325;113.590768,23.528741;113.591194,23.529049;113.591411,23.529167;113.593051,23.530286;113.593121,23.530294;113.593567,23.530597;113.593645,23.530603;113.593798,23.530590;113.593989,23.530460;113.594258,23.530282',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1900',\n",
       "         'via_num': '19',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069254023',\n",
       "           'location': '113.671771,23.644327'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069254024',\n",
       "           'location': '113.656984,23.630330'},\n",
       "          {'name': '牛步径',\n",
       "           'id': '900000069254041',\n",
       "           'location': '113.644661,23.621905'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069254047',\n",
       "           'location': '113.638355,23.620174'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069254025',\n",
       "           'location': '113.632917,23.615699'},\n",
       "          {'name': '云星村站',\n",
       "           'id': '900000069254048',\n",
       "           'location': '113.630825,23.610729'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000069254026',\n",
       "           'location': '113.628880,23.602548'},\n",
       "          {'name': '新华站',\n",
       "           'id': '900000069254049',\n",
       "           'location': '113.621684,23.591693'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000069254027',\n",
       "           'location': '113.619392,23.587470'},\n",
       "          {'name': '南洋理工职业学院',\n",
       "           'id': '900000069254050',\n",
       "           'location': '113.617578,23.582370'},\n",
       "          {'name': '江埔社区',\n",
       "           'id': '900000069254028',\n",
       "           'location': '113.618212,23.573108'},\n",
       "          {'name': '江村',\n",
       "           'id': '900000069254051',\n",
       "           'location': '113.618317,23.568937'},\n",
       "          {'name': '水利学院',\n",
       "           'id': '900000069254052',\n",
       "           'location': '113.619188,23.563056'},\n",
       "          {'name': '沙塱村',\n",
       "           'id': '900000069254053',\n",
       "           'location': '113.615534,23.557400'},\n",
       "          {'name': '凤院路口',\n",
       "           'id': '900000069254029',\n",
       "           'location': '113.610451,23.550087'},\n",
       "          {'name': '大江路口',\n",
       "           'id': '900000069254030',\n",
       "           'location': '113.602188,23.546284'},\n",
       "          {'name': '河东广场',\n",
       "           'id': '900000069254031',\n",
       "           'location': '113.595856,23.546066'},\n",
       "          {'name': '七星路口',\n",
       "           'id': '900000069254032',\n",
       "           'location': '113.596810,23.540586'},\n",
       "          {'name': '联星西华站',\n",
       "           'id': '900000069254054',\n",
       "           'location': '113.597231,23.534444'}]},\n",
       "        {'departure_stop': {'name': '三层路口',\n",
       "          'id': '900000069692027',\n",
       "          'location': '113.677597,23.648211'},\n",
       "         'arrival_stop': {'name': '地铁从化客运站(姓钟围)',\n",
       "          'id': '900000069692047',\n",
       "          'location': '113.594136,23.530360'},\n",
       "         'name': '从11路(良口客运站总站--从化汽车站总站)',\n",
       "         'id': '900000069692',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '18480',\n",
       "         'duration': '3095',\n",
       "         'polyline': '113.677597,23.648211;113.677376,23.648016;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.674744,23.645973;113.673363,23.645201;113.673004,23.645004;113.671715,23.644299;113.671715,23.644293;113.670654,23.643707;113.669968,23.643330;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660278,23.632727;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658226,23.631102;113.657707,23.630760;113.657425,23.630590;113.657120,23.630413;113.657118,23.630408;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652674,23.627422;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.648924,23.624327;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644414,23.621871;113.644410,23.621871;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638329,23.620156;113.638325,23.620156;113.636046,23.618945;113.635543,23.618668;113.635252,23.618481;113.634748,23.618099;113.634518,23.617891;113.634262,23.617622;113.633980,23.617270;113.633633,23.616780;113.633056,23.615911;113.632960,23.615768;113.632960,23.615764;113.632400,23.614926;113.631910,23.614171;113.631667,23.613711;113.631432,23.613142;113.631293,23.612661;113.630907,23.611076;113.630842,23.610803;113.630829,23.610747;113.630729,23.610373;113.630660,23.610061;113.630569,23.609705;113.630547,23.609618;113.630495,23.609388;113.630113,23.607821;113.629774,23.606389;113.629392,23.604740;113.628841,23.602378;113.628841,23.602374;113.628477,23.600820;113.628134,23.599293;113.627969,23.598681;113.627951,23.598633;113.627882,23.598433;113.627782,23.598203;113.627635,23.597921;113.627487,23.597682;113.627279,23.597400;113.627040,23.597140;113.626102,23.596228;113.625647,23.595755;113.624996,23.595139;113.624089,23.594327;113.623164,23.593433;113.622882,23.593147;113.622734,23.592982;113.622378,23.592591;113.622053,23.592188;113.621875,23.591957;113.621693,23.591706;113.621688,23.591706;113.621576,23.591545;113.621289,23.591133;113.621124,23.590864;113.620734,23.590165;113.620603,23.589913;113.619475,23.587643;113.619384,23.587461;113.619384,23.587457;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582387;113.617578,23.582383;113.617552,23.581884;113.617474,23.580651;113.617474,23.580590;113.617474,23.580516;113.617483,23.580204;113.617496,23.579848;113.617556,23.579384;113.617674,23.578741;113.617760,23.578316;113.617791,23.578138;113.618043,23.576905;113.618082,23.576723;113.618095,23.576658;113.618116,23.576558;113.618190,23.576189;113.618346,23.575378;113.618420,23.574809;113.618424,23.574497;113.618407,23.574158;113.618281,23.573481;113.618264,23.573381;113.618229,23.573194;113.618229,23.573190;113.618134,23.572730;113.618077,23.572431;113.618034,23.572153;113.618008,23.571901;113.617990,23.571445;113.618034,23.570911;113.618155,23.570013;113.618190,23.569787;113.618312,23.568967;113.618333,23.568824;113.618464,23.567951;113.618485,23.567786;113.618646,23.566697;113.618759,23.565946;113.618793,23.565673;113.618828,23.565473;113.618845,23.565365;113.618872,23.565182;113.618893,23.565013;113.618902,23.564965;113.619123,23.563464;113.619175,23.563155;113.619188,23.563064;113.619262,23.562522;113.619288,23.562109;113.619262,23.561775;113.619232,23.561602;113.619171,23.561385;113.619010,23.561011;113.618793,23.560673;113.618646,23.560495;113.618142,23.559970;113.617943,23.559766;113.616970,23.558819;113.615729,23.557600;113.615556,23.557422;113.615555,23.557423;113.615356,23.557222;113.615105,23.556976;113.614723,23.556602;113.614052,23.555933;113.613762,23.555609;113.613365,23.555122;113.613190,23.554810;113.613129,23.554688;113.613052,23.554518;113.612823,23.554016;113.612648,23.553556;113.612625,23.553484;113.612602,23.553438;113.612549,23.553284;113.612282,23.552565;113.612068,23.551991;113.611961,23.551771;113.611816,23.551476;113.611557,23.551102;113.611328,23.550846;113.611069,23.550591;113.610435,23.550077;113.610260,23.549927;113.610256,23.549926;113.609961,23.549688;113.609462,23.549288;113.609206,23.549063;113.609054,23.548924;113.608841,23.548676;113.608455,23.548498;113.606888,23.547691;113.606845,23.547669;113.606445,23.547491;113.604735,23.546732;113.604258,23.546549;113.603850,23.546424;113.603303,23.546315;113.602856,23.546276;113.602331,23.546280;113.601775,23.546289;113.601445,23.546293;113.601037,23.546324;113.600898,23.546328;113.600543,23.546345;113.600299,23.546354;113.599492,23.546393;113.599071,23.546372;113.598633,23.546350;113.598485,23.546345;113.597431,23.546293;113.597292,23.546285;113.596784,23.546215;113.596259,23.546141;113.595929,23.546085;113.595829,23.546059;113.595833,23.546059;113.595842,23.546063;113.595838,23.546063;113.595816,23.546055;113.595694,23.546007;113.595564,23.545872;113.595464,23.545716;113.595430,23.545612;113.595395,23.545326;113.595421,23.545178;113.595512,23.544926;113.595673,23.544536;113.595864,23.544071;113.596029,23.543698;113.596133,23.543472;113.596181,23.543372;113.596181,23.543368;113.596385,23.542938;113.596571,23.542474;113.596641,23.542292;113.596732,23.541897;113.596793,23.540833;113.596801,23.540686;113.596849,23.539996;113.596875,23.539618;113.596940,23.539149;113.596979,23.538963;113.597044,23.538598;113.597127,23.538147;113.597331,23.537396;113.597491,23.536810;113.597622,23.536345;113.597726,23.535994;113.597782,23.535790;113.597821,23.535660;113.597921,23.535308;113.597960,23.535174;113.597309,23.534531;113.597240,23.534457;113.597240,23.534453;113.596385,23.533550;113.595707,23.532895;113.595521,23.532713;113.593746,23.531024;113.593303,23.530686;113.592305,23.530000;113.591441,23.529436;113.591215,23.529306;113.590842,23.529058;113.589913,23.528459;113.589280,23.528021;113.589418,23.527843;113.589701,23.528012;113.590165,23.528325;113.590768,23.528741;113.591194,23.529049;113.591411,23.529167;113.593051,23.530286;113.593329,23.530482;113.593572,23.530712;113.593798,23.530590;113.593989,23.530460;113.594136,23.530360',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '1930',\n",
       "         'via_num': '20',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000069692010',\n",
       "           'location': '113.671715,23.644299'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000069692011',\n",
       "           'location': '113.657120,23.630413'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000069692028',\n",
       "           'location': '113.644414,23.621871'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000069692038',\n",
       "           'location': '113.638329,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000069692029',\n",
       "           'location': '113.632960,23.615768'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000069692039',\n",
       "           'location': '113.630829,23.610747'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000069692030',\n",
       "           'location': '113.628841,23.602378'},\n",
       "          {'name': '新华站',\n",
       "           'id': '900000069692040',\n",
       "           'location': '113.621693,23.591706'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000069692041',\n",
       "           'location': '113.619384,23.587461'},\n",
       "          {'name': '南洋理工职业学院',\n",
       "           'id': '900000069692016',\n",
       "           'location': '113.617578,23.582387'},\n",
       "          {'name': '江浦社区',\n",
       "           'id': '900000069692042',\n",
       "           'location': '113.618229,23.573194'},\n",
       "          {'name': '江村',\n",
       "           'id': '900000069692043',\n",
       "           'location': '113.618312,23.568967'},\n",
       "          {'name': '水利学院',\n",
       "           'id': '900000069692044',\n",
       "           'location': '113.619188,23.563064'},\n",
       "          {'name': '沙塱村',\n",
       "           'id': '900000069692017',\n",
       "           'location': '113.615556,23.557422'},\n",
       "          {'name': '凤院路口',\n",
       "           'id': '900000069692018',\n",
       "           'location': '113.610260,23.549927'},\n",
       "          {'name': '大江路口',\n",
       "           'id': '900000069692045',\n",
       "           'location': '113.602331,23.546280'},\n",
       "          {'name': '河东广场',\n",
       "           'id': '900000069692023',\n",
       "           'location': '113.595829,23.546059'},\n",
       "          {'name': '河东市场',\n",
       "           'id': '900000069692046',\n",
       "           'location': '113.596181,23.543372'},\n",
       "          {'name': '七星路口',\n",
       "           'id': '900000069692024',\n",
       "           'location': '113.596801,23.540686'},\n",
       "          {'name': '联星西华站',\n",
       "           'id': '900000069692037',\n",
       "           'location': '113.597240,23.534457'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.594261,23.530281',\n",
       "       'destination': '113.594307,23.530252',\n",
       "       'distance': '6',\n",
       "       'duration': '5',\n",
       "       'steps': [{'instruction': '沿从城大道步行6米到达地铁从化客运站(姓钟围)',\n",
       "         'road': '从城大道',\n",
       "         'distance': '6',\n",
       "         'duration': [],\n",
       "         'polyline': '113.594261,23.530281;113.594307,23.530252',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达地铁从化客运站(姓钟围)'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '地铁从化客运站(姓钟围)',\n",
       "          'id': '440100017386016',\n",
       "          'location': '113.594306,23.530247'},\n",
       "         'arrival_stop': {'name': '地铁太平站',\n",
       "          'id': '440100017386049',\n",
       "          'location': '113.491836,23.452470'},\n",
       "         'name': '从5路(从化图书馆总站--太平小学)',\n",
       "         'id': '440100017386',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '15842',\n",
       "         'duration': '2762',\n",
       "         'polyline': '113.594306,23.530247;113.594861,23.529874;113.595156,23.529674;113.595486,23.529453;113.596484,23.528776;113.596975,23.528455;113.597387,23.528181;113.597413,23.528164;113.597648,23.528003;113.598060,23.527730;113.598090,23.527708;113.598633,23.527348;113.599097,23.527031;113.599397,23.526827;113.599783,23.526567;113.600690,23.525946;113.600781,23.525885;113.601150,23.525638;113.601628,23.525282;113.601762,23.524909;113.601784,23.524718;113.601780,23.524453;113.601597,23.524214;113.601328,23.523872;113.601185,23.523711;113.600885,23.523446;113.600625,23.523281;113.600326,23.523134;113.599957,23.523008;113.599696,23.522951;113.599119,23.522886;113.598633,23.522847;113.597977,23.522795;113.597170,23.522730;113.596480,23.522674;113.596481,23.522678;113.595970,23.522640;113.595428,23.522596;113.594810,23.522551;113.593872,23.522478;113.593582,23.522453;113.591629,23.522301;113.591103,23.522257;113.590530,23.522171;113.590042,23.522072;113.589577,23.521944;113.589165,23.521805;113.588951,23.521727;113.588692,23.521616;113.588531,23.521549;113.588104,23.521338;113.587555,23.521021;113.587280,23.520842;113.586800,23.520477;113.586426,23.520168;113.586029,23.519850;113.585632,23.519522;113.585365,23.519314;113.584534,23.518616;113.584244,23.518370;113.582970,23.517313;113.582123,23.516615;113.581863,23.516388;113.581474,23.516060;113.581471,23.516055;113.581202,23.515829;113.580859,23.515547;113.580686,23.515408;113.580052,23.514909;113.579679,23.514661;113.579332,23.514462;113.579097,23.514349;113.578585,23.514136;113.578238,23.514015;113.578234,23.514015;113.576706,23.513477;113.576658,23.513459;113.576003,23.513229;113.575382,23.512999;113.574431,23.512591;113.574193,23.512474;113.574188,23.512474;113.573954,23.512361;113.573025,23.511819;113.572405,23.511402;113.571545,23.510820;113.571476,23.510768;113.571437,23.510742;113.571224,23.510564;113.570924,23.510256;113.570655,23.509970;113.570412,23.509666;113.570239,23.509414;113.570226,23.509392;113.570221,23.509392;113.569332,23.507930;113.568741,23.506962;113.568494,23.506567;113.567860,23.505538;113.567591,23.505169;113.567589,23.505173;113.567589,23.505169;113.567520,23.505070;113.567215,23.504726;113.566887,23.504431;113.566589,23.504202;113.566124,23.503916;113.565689,23.503702;113.565033,23.503447;113.563538,23.502869;113.562309,23.502405;113.560135,23.501572;113.559074,23.501171;113.558739,23.501038;113.558739,23.501041;113.558746,23.501041;113.558212,23.500847;113.557793,23.500677;113.557579,23.500582;113.557343,23.500469;113.557144,23.500360;113.556892,23.500208;113.556694,23.500065;113.556381,23.499826;113.555466,23.499054;113.555244,23.498867;113.554993,23.498676;113.554825,23.498564;113.554611,23.498421;113.554146,23.498142;113.554039,23.498085;113.554036,23.498082;113.553737,23.497921;113.552682,23.497352;113.550378,23.496115;113.548633,23.495174;113.547357,23.494488;113.546793,23.494219;113.546141,23.493893;113.546137,23.493893;113.545929,23.493789;113.545603,23.493589;113.545460,23.493459;113.544913,23.492973;113.544405,23.492569;113.544306,23.492500;113.543585,23.491992;113.542943,23.491532;113.542331,23.491115;113.541940,23.490929;113.541619,23.490812;113.541241,23.490694;113.540603,23.490530;113.540599,23.490530;113.538915,23.490104;113.536536,23.489501;113.536120,23.489397;113.534826,23.489058;113.534431,23.488928;113.534002,23.488767;113.533819,23.488689;113.533815,23.488689;113.533659,23.488624;113.533160,23.488377;113.532713,23.488129;113.532622,23.488082;113.532092,23.487730;113.531602,23.487352;113.531393,23.487266;113.530799,23.486680;113.530560,23.486411;113.529549,23.485122;113.529353,23.484883;113.529297,23.484796;113.529054,23.484488;113.528967,23.484371;113.528967,23.484375;113.528967,23.484371;113.528069,23.483212;113.527752,23.482795;113.527548,23.482409;113.526233,23.480690;113.525898,23.480239;113.525799,23.480109;113.525799,23.480104;113.525117,23.479223;113.524839,23.478893;113.524575,23.478633;113.524345,23.478442;113.524076,23.478260;113.523898,23.478147;113.523247,23.477782;113.522478,23.477352;113.521029,23.476558;113.520252,23.476141;113.519822,23.475946;113.519431,23.475803;113.519002,23.475668;113.518954,23.475655;113.518959,23.475651;113.518967,23.475651;113.518959,23.475651;113.518051,23.475361;113.517647,23.475235;113.517509,23.475191;113.517349,23.475142;113.517181,23.475086;113.515945,23.474714;113.514130,23.474131;113.514000,23.474092;113.513989,23.474110;113.513429,23.473937;113.512339,23.473581;113.511337,23.473268;113.510742,23.473095;113.510260,23.472938;113.509523,23.472678;113.508199,23.472118;113.507839,23.471940;113.507756,23.471897;113.506918,23.471467;113.505334,23.470634;113.504909,23.470412;113.504132,23.470013;113.504128,23.470013;113.503503,23.469692;113.502769,23.469310;113.501840,23.468828;113.501072,23.468420;113.500846,23.468286;113.500421,23.467990;113.500130,23.467743;113.499809,23.467413;113.499540,23.467088;113.499518,23.467062;113.499518,23.467057;113.499336,23.466797;113.499323,23.466775;113.499089,23.466337;113.498433,23.464961;113.497539,23.463073;113.496719,23.461372;113.496619,23.461194;113.496615,23.461194;113.496545,23.461063;113.496298,23.460686;113.495920,23.460204;113.495239,23.459379;113.494878,23.458958;113.494362,23.458342;113.494245,23.458199;113.494247,23.458200;113.494245,23.458199;113.494110,23.458030;113.494019,23.457917;113.493707,23.457491;113.493550,23.457257;113.493407,23.457023;113.493199,23.456649;113.492999,23.456254;113.492808,23.455807;113.492687,23.455508;113.492491,23.454887;113.492240,23.453911;113.492114,23.453659;113.491862,23.452591;113.491836,23.452470',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0540',\n",
       "         'end_time': '2030',\n",
       "         'via_num': '22',\n",
       "         'via_stops': [{'name': '木壳岭',\n",
       "           'id': '440100017386046',\n",
       "           'location': '113.597413,23.528164'},\n",
       "          {'name': '联发市场',\n",
       "           'id': '440100017386018',\n",
       "           'location': '113.596480,23.522674'},\n",
       "          {'name': '新明村',\n",
       "           'id': '440100017386019',\n",
       "           'location': '113.588692,23.521616'},\n",
       "          {'name': '白田岗村',\n",
       "           'id': '440100017386020',\n",
       "           'location': '113.581474,23.516060'},\n",
       "          {'name': '珠江学院',\n",
       "           'id': '440100017386021',\n",
       "           'location': '113.578238,23.514015'},\n",
       "          {'name': '沙贝村',\n",
       "           'id': '440100017386022',\n",
       "           'location': '113.574193,23.512474'},\n",
       "          {'name': '赤草村',\n",
       "           'id': '440100017386023',\n",
       "           'location': '113.570226,23.509392'},\n",
       "          {'name': '店头',\n",
       "           'id': '440100017386057',\n",
       "           'location': '113.567591,23.505169'},\n",
       "          {'name': '地铁赤草站',\n",
       "           'id': '440100017386025',\n",
       "           'location': '113.558739,23.501038'},\n",
       "          {'name': '邓村路口',\n",
       "           'id': '440100017386026',\n",
       "           'location': '113.554039,23.498085'},\n",
       "          {'name': '元洲岗',\n",
       "           'id': '440100017386027',\n",
       "           'location': '113.546141,23.493893'},\n",
       "          {'name': '环亚工业园',\n",
       "           'id': '440100017386028',\n",
       "           'location': '113.544306,23.492500'},\n",
       "          {'name': '南洋英文学校',\n",
       "           'id': '440100017386029',\n",
       "           'location': '113.540603,23.490530'},\n",
       "          {'name': '神岗村',\n",
       "           'id': '440100017386030',\n",
       "           'location': '113.533819,23.488689'},\n",
       "          {'name': '神岗墟',\n",
       "           'id': '440100017386031',\n",
       "           'location': '113.528967,23.484371'},\n",
       "          {'name': '神岗中学',\n",
       "           'id': '440100017386047',\n",
       "           'location': '113.525799,23.480109'},\n",
       "          {'name': '佛岗村',\n",
       "           'id': '440100017386062',\n",
       "           'location': '113.518954,23.475655'},\n",
       "          {'name': '地铁神岗站',\n",
       "           'id': '440100017386053',\n",
       "           'location': '113.514000,23.474092'},\n",
       "          {'name': '连塘路口',\n",
       "           'id': '440100017386035',\n",
       "           'location': '113.504132,23.470013'},\n",
       "          {'name': '大塘边站',\n",
       "           'id': '440100017386036',\n",
       "           'location': '113.499518,23.467062'},\n",
       "          {'name': '水南村',\n",
       "           'id': '440100017386037',\n",
       "           'location': '113.496619,23.461194'},\n",
       "          {'name': '大城云山花园',\n",
       "           'id': '440100017386038',\n",
       "           'location': '113.494245,23.458199'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.491829,23.452469',\n",
       "       'destination': '113.495598,23.450920',\n",
       "       'distance': '917',\n",
       "       'duration': '786',\n",
       "       'steps': [{'instruction': '沿广从南路辅路步行37米右转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491829,23.452469;113.491760,23.452145',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行15米右转',\n",
       "         'road': [],\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491760,23.452139;113.491615,23.452166',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行213米左转',\n",
       "         'road': [],\n",
       "         'distance': '213',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491615,23.452166;113.491547,23.452187;113.491631,23.452522;113.492035,23.452444;113.492371,23.452387;113.492516,23.453030;113.492332,23.453068',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿广从南路辅路步行204米左转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '204',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492332,23.453068;113.492226,23.452461;113.492096,23.451880;113.491959,23.451250',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行51米左转',\n",
       "         'road': [],\n",
       "         'distance': '51',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.451246;113.492020,23.451199;113.492073,23.451120;113.492104,23.450985;113.492088,23.450829',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿华软大道步行250米右转',\n",
       "         'road': '华软大道',\n",
       "         'distance': '250',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492088,23.450825;113.492241,23.450804;113.492798,23.450689;113.493095,23.450647;113.493675,23.450533;113.494514,23.450369',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行29米右转',\n",
       "         'road': [],\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494514,23.450365;113.494514,23.450304;113.494576,23.450260;113.494652,23.450270;113.494690,23.450325',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿求知路步行15米左转',\n",
       "         'road': '求知路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494690,23.450325;113.494843,23.450300',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行103米',\n",
       "         'road': '博学路',\n",
       "         'distance': '103',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494843,23.450294;113.495323,23.450699;113.495598,23.450920',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '7.0',\n",
       "    'duration': '7676',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '3509',\n",
       "    'distance': '38343',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679588,23.632492',\n",
       "       'destination': '113.675644,23.619991',\n",
       "       'distance': '1957',\n",
       "       'duration': '1677',\n",
       "       'steps': [{'instruction': '步行101米右转',\n",
       "         'road': [],\n",
       "         'distance': '101',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679588,23.632492;113.680588,23.632523',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行199米向右前方行走',\n",
       "         'road': [],\n",
       "         'distance': '199',\n",
       "         'duration': [],\n",
       "         'polyline': '113.680588,23.632523;113.680641,23.632139;113.680672,23.631741;113.680634,23.631540;113.680588,23.631437;113.680496,23.631241;113.680405,23.631094;113.680206,23.630842',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行159米左转',\n",
       "         'road': [],\n",
       "         'distance': '159',\n",
       "         'duration': [],\n",
       "         'polyline': '113.680206,23.630838;113.680038,23.630772;113.679642,23.630638;113.679359,23.630522;113.679199,23.630472;113.679031,23.630430;113.678879,23.630404;113.678711,23.630365',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行237米左转',\n",
       "         'road': [],\n",
       "         'distance': '237',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678711,23.630360;113.678711,23.629341;113.678711,23.629192;113.678688,23.629084;113.678635,23.629023;113.678421,23.628902;113.678368,23.628841;113.678314,23.628723;113.678291,23.628611;113.678276,23.628372',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行498米向右前方行走',\n",
       "         'road': [],\n",
       "         'distance': '498',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678276,23.628368;113.678574,23.628338;113.678688,23.628307;113.678848,23.628233;113.679047,23.628073;113.679161,23.627964;113.679214,23.627869;113.679237,23.627777;113.679283,23.627525;113.679291,23.627321;113.679253,23.626854;113.679184,23.626623;113.679138,23.626497;113.679001,23.626259;113.678940,23.626177;113.678711,23.625977;113.678619,23.625864;113.678528,23.625721;113.678436,23.625191;113.678429,23.625057;113.678452,23.624939;113.678574,23.624657',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行722米左转',\n",
       "         'road': [],\n",
       "         'distance': '722',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678574,23.624653;113.678558,23.624510;113.678413,23.624323;113.677582,23.623793;113.676529,23.623346;113.676361,23.623255;113.676270,23.623152;113.676109,23.622833;113.676041,23.622738;113.675789,23.622482;113.675499,23.622278;113.675415,23.622175;113.675385,23.622087;113.675377,23.621836;113.675392,23.621611;113.675430,23.621475;113.675545,23.621359;113.675766,23.621181;113.675850,23.621090;113.675903,23.620995;113.675903,23.620855;113.675880,23.620726;113.675743,23.620546;113.675598,23.620373;113.675240,23.620012',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行41米到达松浪社',\n",
       "         'road': [],\n",
       "         'distance': '41',\n",
       "         'duration': [],\n",
       "         'polyline': '113.675240,23.620008;113.675491,23.620012;113.675644,23.619991;113.675644,23.619991',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达松浪社'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '松浪社',\n",
       "          'id': '900000111143034',\n",
       "          'location': '113.675629,23.619987'},\n",
       "         'arrival_stop': {'name': '地铁东风站',\n",
       "          'id': '900000111143009',\n",
       "          'location': '113.600799,23.567886'},\n",
       "         'name': '从20路(乌土村委总站--从化汽车站总站)',\n",
       "         'id': '900000111143',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '16350',\n",
       "         'duration': '3702',\n",
       "         'polyline': '113.675629,23.619987;113.675301,23.620045;113.675201,23.619968;113.674934,23.619713;113.673920,23.618620;113.673691,23.618429;113.673454,23.618334;113.673218,23.618269;113.671082,23.617786;113.667892,23.617096;113.666336,23.616735;113.665916,23.616650;113.664551,23.616346;113.663689,23.616152;113.663544,23.616119;113.663223,23.616043;113.662567,23.615911;113.662025,23.615803;113.661682,23.615711;113.660400,23.615417;113.660004,23.615669;113.659927,23.615711;113.659088,23.616234;113.657166,23.617487;113.656975,23.617626;113.656815,23.617783;113.655830,23.618845;113.655678,23.618971;113.655548,23.619076;113.655411,23.619141;113.655281,23.619188;113.655083,23.619236;113.654747,23.619293;113.654518,23.619307;113.654320,23.619303;113.653976,23.619244;113.652885,23.619011;113.652718,23.618984;113.652573,23.618984;113.652428,23.619015;113.651825,23.619240;113.650818,23.619617;113.649361,23.619949;113.648819,23.620077;113.648354,23.620222;113.648087,23.620314;113.647858,23.620438;113.647621,23.620604;113.647377,23.620783;113.647179,23.620893;113.646973,23.620993;113.646477,23.621176;113.646317,23.621258;113.645866,23.621567;113.645721,23.621698;113.645721,23.621876;113.645821,23.622089;113.646248,23.622282;113.646629,23.622496;113.647217,23.622856;113.647697,23.623178;113.648071,23.623466;113.649094,23.624311;113.649666,23.624836;113.649811,23.624950;113.650055,23.625156;113.650192,23.625296;113.652588,23.627287;113.652748,23.627409;113.653603,23.628078;113.654411,23.628637;113.655273,23.629168;113.657509,23.630495;113.657425,23.630590;113.657120,23.630409;113.654335,23.628742;113.653847,23.628416;113.653603,23.628225;113.652382,23.627178;113.650169,23.625324;113.650017,23.625223;113.649773,23.625013;113.649742,23.624990;113.649734,23.624990;113.648926,23.624327;113.647842,23.623442;113.647362,23.623091;113.646782,23.622723;113.646347,23.622465;113.645981,23.622286;113.645592,23.622131;113.645119,23.621990;113.644714,23.621914;113.644516,23.621885;113.644521,23.621890;113.644371,23.621862;113.643257,23.621748;113.642578,23.621666;113.642471,23.621645;113.642029,23.621540;113.641449,23.621353;113.640526,23.621033;113.639336,23.620604;113.639183,23.620543;113.638855,23.620413;113.638474,23.620235;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632881,23.615646;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630577,23.610237;113.630516,23.610188;113.630455,23.610161;113.630257,23.610147;113.630119,23.610188;113.629410,23.610382;113.626266,23.611412;113.624924,23.611845;113.624825,23.611914;113.623993,23.612200;113.622940,23.612551;113.620605,23.613319;113.620193,23.613451;113.618462,23.614006;113.617325,23.614307;113.616829,23.614441;113.616310,23.614557;113.615623,23.614731;113.615547,23.614721;113.615829,23.613806;113.615883,23.613615;113.615837,23.613312;113.615700,23.612883;113.615692,23.612778;113.615692,23.612595;113.615700,23.612335;113.615623,23.611740;113.615601,23.611603;113.615532,23.611467;113.615410,23.611258;113.615379,23.611164;113.615349,23.610947;113.615349,23.610842;113.615372,23.610706;113.615479,23.610287;113.615486,23.610147;113.615486,23.610014;113.615395,23.609644;113.615395,23.609617;113.615395,23.609457;113.615402,23.609367;113.615456,23.609184;113.615509,23.609085;113.616081,23.608265;113.616371,23.607573;113.616409,23.607368;113.616402,23.607235;113.616371,23.607100;113.616272,23.606810;113.616158,23.606575;113.615829,23.605993;113.615562,23.605604;113.614883,23.604675;113.614601,23.604301;113.614601,23.604298;113.614388,23.604015;113.614090,23.603594;113.613861,23.603292;113.613716,23.603111;113.612968,23.602079;113.612846,23.601910;113.612610,23.601501;113.612335,23.600824;113.612335,23.600820;113.611424,23.598633;113.611029,23.597665;113.610942,23.597483;113.610833,23.597318;113.610738,23.597183;113.610239,23.596602;113.610109,23.596432;113.609592,23.595547;113.608924,23.594384;113.608841,23.594180;113.608741,23.593841;113.608663,23.593490;113.608665,23.593493;113.608665,23.593498;113.608665,23.593493;113.608139,23.591215;113.608124,23.591070;113.608032,23.590477;113.608025,23.590450;113.608025,23.590446;113.607971,23.590200;113.607903,23.589956;113.607841,23.589813;113.607712,23.589596;113.607452,23.589245;113.607239,23.588840;113.606712,23.587645;113.606400,23.586927;113.606293,23.586622;113.605988,23.585661;113.605904,23.585447;113.605820,23.585260;113.605629,23.584936;113.605354,23.584476;113.605232,23.584290;113.604759,23.583406;113.604652,23.583202;113.604584,23.582983;113.604477,23.582586;113.604095,23.580610;113.603882,23.579472;113.603661,23.578447;113.603638,23.578199;113.603630,23.577904;113.603706,23.576944;113.603737,23.576658;113.603760,23.576448;113.603867,23.576088;113.604012,23.575682;113.604042,23.575418;113.604034,23.575291;113.604012,23.575186;113.603966,23.575087;113.603897,23.574961;113.603821,23.574879;113.603645,23.574709;113.603127,23.574280;113.603125,23.574275;113.602196,23.573498;113.601892,23.573229;113.600990,23.572261;113.600872,23.572127;113.600694,23.571936;113.600625,23.571853;113.600503,23.571680;113.600434,23.571528;113.600395,23.571402;113.600378,23.571254;113.600378,23.571094;113.600443,23.570551;113.600477,23.570321;113.600521,23.570217;113.600569,23.570148;113.600816,23.569948;113.600942,23.569770;113.600894,23.568885;113.600799,23.567886',\n",
       "         'bustimetag': '4',\n",
       "         'start_time': '0830',\n",
       "         'end_time': '1900',\n",
       "         'via_num': '14',\n",
       "         'via_stops': [{'name': '源湖村五社',\n",
       "           'id': '900000111143035',\n",
       "           'location': '113.663689,23.616152'},\n",
       "          {'name': '源湖村',\n",
       "           'id': '900000111143036',\n",
       "           'location': '113.659927,23.615711'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000111143003',\n",
       "           'location': '113.657120,23.630409'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111143031',\n",
       "           'location': '113.649742,23.624990'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111143004',\n",
       "           'location': '113.644516,23.621885'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111143005',\n",
       "           'location': '113.632881,23.615646'},\n",
       "          {'name': '云星村站',\n",
       "           'id': '900000111143032',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '麻三村委',\n",
       "           'id': '900000111143006',\n",
       "           'location': '113.615532,23.611467'},\n",
       "          {'name': '麻二村委',\n",
       "           'id': '900000111143007',\n",
       "           'location': '113.614601,23.604301'},\n",
       "          {'name': '麻一木棉站',\n",
       "           'id': '900000111143037',\n",
       "           'location': '113.612335,23.600824'},\n",
       "          {'name': '沙洲',\n",
       "           'id': '900000111143027',\n",
       "           'location': '113.608663,23.593490'},\n",
       "          {'name': '塘下村十社',\n",
       "           'id': '900000111143028',\n",
       "           'location': '113.608025,23.590450'},\n",
       "          {'name': '塘下村委',\n",
       "           'id': '900000111143008',\n",
       "           'location': '113.605354,23.584476'},\n",
       "          {'name': '东风村委',\n",
       "           'id': '900000111143029',\n",
       "           'location': '113.603127,23.574280'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.600800,23.567890',\n",
       "       'destination': '113.600800,23.566233',\n",
       "       'distance': '734',\n",
       "       'duration': '629',\n",
       "       'steps': [{'instruction': '沿从化大道步行398米右转',\n",
       "         'road': '从化大道',\n",
       "         'distance': '398',\n",
       "         'duration': [],\n",
       "         'polyline': '113.600800,23.567890;113.600739,23.567270;113.600700,23.566692;113.600685,23.566086;113.600708,23.565586;113.600777,23.564684;113.600700,23.564310',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行170米左转',\n",
       "         'road': [],\n",
       "         'distance': '170',\n",
       "         'duration': [],\n",
       "         'polyline': '113.600700,23.564306;113.600540,23.564388;113.600487,23.565750',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行166米到达东风',\n",
       "         'road': [],\n",
       "         'distance': '166',\n",
       "         'duration': [],\n",
       "         'polyline': '113.600487,23.565750;113.600060,23.565794;113.600060,23.565855;113.600800,23.565859;113.600800,23.566233',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达东风'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '东风',\n",
       "          'id': '900000074702001',\n",
       "          'location': '113.600801,23.566233'},\n",
       "         'arrival_stop': {'name': '太平',\n",
       "          'id': '900000074702005',\n",
       "          'location': '113.491955,23.452090'},\n",
       "         'name': '地铁14号线(东风--嘉禾望岗)',\n",
       "         'id': '900000074702',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '18484',\n",
       "         'duration': '967',\n",
       "         'polyline': '113.600801,23.566233;113.600799,23.565755;113.600886,23.564700;113.600969,23.563973;113.601005,23.563477;113.601025,23.562601;113.600983,23.561920;113.600911,23.556848;113.600990,23.546182;113.601140,23.545218;113.601516,23.543880;113.601639,23.543069;113.601677,23.542518;113.601656,23.542027;113.601570,23.541515;113.601393,23.540984;113.601130,23.540458;113.600835,23.539951;113.600041,23.538633;113.599354,23.537404;113.598603,23.536204;113.598002,23.535328;113.595844,23.532853;113.595646,23.532644;113.594721,23.531769;113.593793,23.530889;113.593514,23.530681;113.582531,23.523276;113.581939,23.522822;113.580606,23.521696;113.577554,23.519552;113.577306,23.519352;113.576647,23.518756;113.576100,23.518162;113.575851,23.517843;113.575586,23.517468;113.575373,23.517137;113.571854,23.511367;113.571405,23.510602;113.571158,23.510226;113.570946,23.509891;113.570794,23.509630;113.570515,23.509158;113.569879,23.508135;113.569313,23.507131;113.568589,23.506017;113.568113,23.505381;113.567879,23.505069;113.567466,23.504621;113.567032,23.504215;113.566611,23.503881;113.566249,23.503674;113.565962,23.503527;113.565583,23.503355;113.564980,23.503094;113.562662,23.502186;113.561001,23.501509;113.560204,23.501199;113.559508,23.500933;113.557021,23.500094;113.556656,23.499905;113.556307,23.499664;113.555753,23.499216;113.554867,23.498542;113.554105,23.498082;113.552442,23.497174;113.551145,23.496444;113.550153,23.495930;113.548415,23.494993;113.546750,23.494078;113.545995,23.493606;113.545431,23.493214;113.544218,23.492366;113.543013,23.491516;113.542268,23.491042;113.541798,23.490826;113.541394,23.490688;113.537759,23.489749;113.534858,23.489004;113.534189,23.488774;113.533639,23.488559;113.533235,23.488365;113.532487,23.487938;113.531679,23.487383;113.531354,23.487147;113.531054,23.486862;113.530690,23.486477;113.530533,23.486275;113.530371,23.486068;113.529356,23.484737;113.528785,23.484076;113.528050,23.483065;113.527645,23.482451;113.527383,23.482099;113.525249,23.479331;113.524824,23.478821;113.524484,23.478512;113.524171,23.478277;113.523707,23.477996;113.520505,23.476234;113.519798,23.475886;113.518851,23.475543;113.518173,23.475343;113.517396,23.475101;113.516620,23.474853;113.514628,23.474225;113.513654,23.473944;113.512313,23.473523;113.510575,23.472981;113.510025,23.472795;113.509156,23.472477;113.508554,23.472225;113.507918,23.471936;113.506245,23.471060;113.502355,23.469038;113.501282,23.468473;113.500901,23.468254;113.500540,23.468019;113.500190,23.467722;113.499845,23.467380;113.499424,23.466854;113.499246,23.466540;113.498897,23.465841;113.498032,23.463973;113.496780,23.461391;113.496584,23.460998;113.496135,23.460378;113.495288,23.459364;113.494274,23.458157;113.493617,23.457262;113.493341,23.456794;113.493016,23.456129;113.492764,23.455544;113.492576,23.454966;113.492361,23.454088;113.492091,23.452705;113.491955,23.452090',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2235',\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '从化客运站',\n",
       "           'id': '900000074702002',\n",
       "           'location': '113.594721,23.531769'},\n",
       "          {'name': '赤草',\n",
       "           'id': '900000074702003',\n",
       "           'location': '113.560204,23.501199'},\n",
       "          {'name': '神岗',\n",
       "           'id': '900000074702004',\n",
       "           'location': '113.517396,23.475101'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.600060,23.565859'},\n",
       "      'exit': {'name': 'B口', 'location': '113.492523,23.453032'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.491959,23.452087',\n",
       "       'destination': '113.495598,23.450920',\n",
       "       'distance': '818',\n",
       "       'duration': '701',\n",
       "       'steps': [{'instruction': '步行166米左转',\n",
       "         'road': [],\n",
       "         'distance': '166',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.452087;113.492035,23.452438;113.492371,23.452387;113.492516,23.453030;113.492332,23.453068',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿广从南路辅路步行204米左转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '204',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492332,23.453068;113.492226,23.452461;113.492096,23.451880;113.491959,23.451250',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行51米左转',\n",
       "         'road': [],\n",
       "         'distance': '51',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.451246;113.492020,23.451199;113.492073,23.451120;113.492104,23.450985;113.492088,23.450829',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿华软大道步行250米右转',\n",
       "         'road': '华软大道',\n",
       "         'distance': '250',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492088,23.450825;113.492241,23.450804;113.492798,23.450689;113.493095,23.450647;113.493675,23.450533;113.494514,23.450369',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行29米右转',\n",
       "         'road': [],\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494514,23.450365;113.494514,23.450304;113.494576,23.450260;113.494652,23.450270;113.494690,23.450325',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿求知路步行15米左转',\n",
       "         'road': '求知路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494690,23.450325;113.494843,23.450300',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行103米',\n",
       "         'road': '博学路',\n",
       "         'distance': '103',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494843,23.450294;113.495323,23.450699;113.495598,23.450920',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '10417',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2875',\n",
       "    'distance': '41316',\n",
       "    'missed': '0',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679588,23.632492',\n",
       "       'destination': '113.675644,23.619991',\n",
       "       'distance': '1957',\n",
       "       'duration': '1677',\n",
       "       'steps': [{'instruction': '步行101米右转',\n",
       "         'road': [],\n",
       "         'distance': '101',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679588,23.632492;113.680588,23.632523',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行199米向右前方行走',\n",
       "         'road': [],\n",
       "         'distance': '199',\n",
       "         'duration': [],\n",
       "         'polyline': '113.680588,23.632523;113.680641,23.632139;113.680672,23.631741;113.680634,23.631540;113.680588,23.631437;113.680496,23.631241;113.680405,23.631094;113.680206,23.630842',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行159米左转',\n",
       "         'road': [],\n",
       "         'distance': '159',\n",
       "         'duration': [],\n",
       "         'polyline': '113.680206,23.630838;113.680038,23.630772;113.679642,23.630638;113.679359,23.630522;113.679199,23.630472;113.679031,23.630430;113.678879,23.630404;113.678711,23.630365',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行237米左转',\n",
       "         'road': [],\n",
       "         'distance': '237',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678711,23.630360;113.678711,23.629341;113.678711,23.629192;113.678688,23.629084;113.678635,23.629023;113.678421,23.628902;113.678368,23.628841;113.678314,23.628723;113.678291,23.628611;113.678276,23.628372',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行498米向右前方行走',\n",
       "         'road': [],\n",
       "         'distance': '498',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678276,23.628368;113.678574,23.628338;113.678688,23.628307;113.678848,23.628233;113.679047,23.628073;113.679161,23.627964;113.679214,23.627869;113.679237,23.627777;113.679283,23.627525;113.679291,23.627321;113.679253,23.626854;113.679184,23.626623;113.679138,23.626497;113.679001,23.626259;113.678940,23.626177;113.678711,23.625977;113.678619,23.625864;113.678528,23.625721;113.678436,23.625191;113.678429,23.625057;113.678452,23.624939;113.678574,23.624657',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行722米左转',\n",
       "         'road': [],\n",
       "         'distance': '722',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678574,23.624653;113.678558,23.624510;113.678413,23.624323;113.677582,23.623793;113.676529,23.623346;113.676361,23.623255;113.676270,23.623152;113.676109,23.622833;113.676041,23.622738;113.675789,23.622482;113.675499,23.622278;113.675415,23.622175;113.675385,23.622087;113.675377,23.621836;113.675392,23.621611;113.675430,23.621475;113.675545,23.621359;113.675766,23.621181;113.675850,23.621090;113.675903,23.620995;113.675903,23.620855;113.675880,23.620726;113.675743,23.620546;113.675598,23.620373;113.675240,23.620012',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行41米到达松浪社',\n",
       "         'road': [],\n",
       "         'distance': '41',\n",
       "         'duration': [],\n",
       "         'polyline': '113.675240,23.620008;113.675491,23.620012;113.675644,23.619991;113.675644,23.619991',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达松浪社'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '松浪社',\n",
       "          'id': '900000111143034',\n",
       "          'location': '113.675629,23.619987'},\n",
       "         'arrival_stop': {'name': '从化供电局',\n",
       "          'id': '900000111143017',\n",
       "          'location': '113.587635,23.546072'},\n",
       "         'name': '从20路(乌土村委总站--从化汽车站总站)',\n",
       "         'id': '900000111143',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '19749',\n",
       "         'duration': '4609',\n",
       "         'polyline': '113.675629,23.619987;113.675301,23.620045;113.675201,23.619968;113.674934,23.619713;113.673920,23.618620;113.673691,23.618429;113.673454,23.618334;113.673218,23.618269;113.671082,23.617786;113.667892,23.617096;113.666336,23.616735;113.665916,23.616650;113.664551,23.616346;113.663689,23.616152;113.663544,23.616119;113.663223,23.616043;113.662567,23.615911;113.662025,23.615803;113.661682,23.615711;113.660400,23.615417;113.660004,23.615669;113.659927,23.615711;113.659088,23.616234;113.657166,23.617487;113.656975,23.617626;113.656815,23.617783;113.655830,23.618845;113.655678,23.618971;113.655548,23.619076;113.655411,23.619141;113.655281,23.619188;113.655083,23.619236;113.654747,23.619293;113.654518,23.619307;113.654320,23.619303;113.653976,23.619244;113.652885,23.619011;113.652718,23.618984;113.652573,23.618984;113.652428,23.619015;113.651825,23.619240;113.650818,23.619617;113.649361,23.619949;113.648819,23.620077;113.648354,23.620222;113.648087,23.620314;113.647858,23.620438;113.647621,23.620604;113.647377,23.620783;113.647179,23.620893;113.646973,23.620993;113.646477,23.621176;113.646317,23.621258;113.645866,23.621567;113.645721,23.621698;113.645721,23.621876;113.645821,23.622089;113.646248,23.622282;113.646629,23.622496;113.647217,23.622856;113.647697,23.623178;113.648071,23.623466;113.649094,23.624311;113.649666,23.624836;113.649811,23.624950;113.650055,23.625156;113.650192,23.625296;113.652588,23.627287;113.652748,23.627409;113.653603,23.628078;113.654411,23.628637;113.655273,23.629168;113.657509,23.630495;113.657425,23.630590;113.657120,23.630409;113.654335,23.628742;113.653847,23.628416;113.653603,23.628225;113.652382,23.627178;113.650169,23.625324;113.650017,23.625223;113.649773,23.625013;113.649742,23.624990;113.649734,23.624990;113.648926,23.624327;113.647842,23.623442;113.647362,23.623091;113.646782,23.622723;113.646347,23.622465;113.645981,23.622286;113.645592,23.622131;113.645119,23.621990;113.644714,23.621914;113.644516,23.621885;113.644521,23.621890;113.644371,23.621862;113.643257,23.621748;113.642578,23.621666;113.642471,23.621645;113.642029,23.621540;113.641449,23.621353;113.640526,23.621033;113.639336,23.620604;113.639183,23.620543;113.638855,23.620413;113.638474,23.620235;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632881,23.615646;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630577,23.610237;113.630516,23.610188;113.630455,23.610161;113.630257,23.610147;113.630119,23.610188;113.629410,23.610382;113.626266,23.611412;113.624924,23.611845;113.624825,23.611914;113.623993,23.612200;113.622940,23.612551;113.620605,23.613319;113.620193,23.613451;113.618462,23.614006;113.617325,23.614307;113.616829,23.614441;113.616310,23.614557;113.615623,23.614731;113.615547,23.614721;113.615829,23.613806;113.615883,23.613615;113.615837,23.613312;113.615700,23.612883;113.615692,23.612778;113.615692,23.612595;113.615700,23.612335;113.615623,23.611740;113.615601,23.611603;113.615532,23.611467;113.615410,23.611258;113.615379,23.611164;113.615349,23.610947;113.615349,23.610842;113.615372,23.610706;113.615479,23.610287;113.615486,23.610147;113.615486,23.610014;113.615395,23.609644;113.615395,23.609617;113.615395,23.609457;113.615402,23.609367;113.615456,23.609184;113.615509,23.609085;113.616081,23.608265;113.616371,23.607573;113.616409,23.607368;113.616402,23.607235;113.616371,23.607100;113.616272,23.606810;113.616158,23.606575;113.615829,23.605993;113.615562,23.605604;113.614883,23.604675;113.614601,23.604301;113.614601,23.604298;113.614388,23.604015;113.614090,23.603594;113.613861,23.603292;113.613716,23.603111;113.612968,23.602079;113.612846,23.601910;113.612610,23.601501;113.612335,23.600824;113.612335,23.600820;113.611424,23.598633;113.611029,23.597665;113.610942,23.597483;113.610833,23.597318;113.610738,23.597183;113.610239,23.596602;113.610109,23.596432;113.609592,23.595547;113.608924,23.594384;113.608841,23.594180;113.608741,23.593841;113.608663,23.593490;113.608665,23.593493;113.608665,23.593498;113.608665,23.593493;113.608139,23.591215;113.608124,23.591070;113.608032,23.590477;113.608025,23.590450;113.608025,23.590446;113.607971,23.590200;113.607903,23.589956;113.607841,23.589813;113.607712,23.589596;113.607452,23.589245;113.607239,23.588840;113.606712,23.587645;113.606400,23.586927;113.606293,23.586622;113.605988,23.585661;113.605904,23.585447;113.605820,23.585260;113.605629,23.584936;113.605354,23.584476;113.605232,23.584290;113.604759,23.583406;113.604652,23.583202;113.604584,23.582983;113.604477,23.582586;113.604095,23.580610;113.603882,23.579472;113.603661,23.578447;113.603638,23.578199;113.603630,23.577904;113.603706,23.576944;113.603737,23.576658;113.603760,23.576448;113.603867,23.576088;113.604012,23.575682;113.604042,23.575418;113.604034,23.575291;113.604012,23.575186;113.603966,23.575087;113.603897,23.574961;113.603821,23.574879;113.603645,23.574709;113.603127,23.574280;113.603125,23.574275;113.602196,23.573498;113.601892,23.573229;113.600990,23.572261;113.600872,23.572127;113.600694,23.571936;113.600625,23.571853;113.600503,23.571680;113.600434,23.571528;113.600395,23.571402;113.600378,23.571254;113.600378,23.571094;113.600443,23.570551;113.600477,23.570321;113.600521,23.570217;113.600569,23.570148;113.600816,23.569948;113.600942,23.569770;113.600894,23.568885;113.600799,23.567886;113.600799,23.567882;113.600738,23.567266;113.600694,23.566693;113.600681,23.566081;113.600703,23.565673;113.600707,23.565582;113.600773,23.564679;113.600703,23.564306;113.600651,23.564106;113.600660,23.563581;113.600751,23.562474;113.600773,23.561827;113.600799,23.561567;113.600851,23.561354;113.600916,23.561089;113.600981,23.559727;113.600981,23.558984;113.600977,23.557986;113.600977,23.556823;113.600977,23.556693;113.600959,23.555773;113.600938,23.554688;113.600924,23.554180;113.600781,23.553906;113.600760,23.552578;113.600742,23.552209;113.600734,23.551992;113.600694,23.551393;113.600621,23.551393;113.599210,23.551398;113.599149,23.551398;113.598633,23.551393;113.598372,23.551385;113.597773,23.551398;113.596658,23.551393;113.596597,23.551385;113.596202,23.551376;113.596011,23.551354;113.595807,23.551302;113.595564,23.551189;113.595321,23.551055;113.595269,23.551020;113.595004,23.550864;113.594705,23.550690;113.594440,23.550525;113.593989,23.550256;113.593733,23.550113;113.593503,23.549965;113.593437,23.549922;113.593216,23.549757;113.592995,23.549466;113.592908,23.549110;113.592847,23.548624;113.592826,23.548268;113.592817,23.548160;113.592819,23.548161;113.592781,23.547560;113.592644,23.547079;113.592552,23.546762;113.592552,23.546766;113.592552,23.546762;113.592522,23.546671;113.592415,23.546415;113.592346,23.546280;113.591393,23.547153;113.591110,23.547373;113.590714,23.547590;113.590712,23.547591;113.590595,23.547652;113.590430,23.547747;113.590095,23.547930;113.589549,23.548238;113.589193,23.548307;113.588885,23.548320;113.588863,23.548325;113.588615,23.548294;113.588364,23.548255;113.587569,23.548112;113.587609,23.548008;113.587635,23.546714;113.587630,23.546189;113.587635,23.546072',\n",
       "         'bustimetag': '4',\n",
       "         'start_time': '0830',\n",
       "         'end_time': '1900',\n",
       "         'via_num': '20',\n",
       "         'via_stops': [{'name': '源湖村五社',\n",
       "           'id': '900000111143035',\n",
       "           'location': '113.663689,23.616152'},\n",
       "          {'name': '源湖村',\n",
       "           'id': '900000111143036',\n",
       "           'location': '113.659927,23.615711'},\n",
       "          {'name': '温泉交警中队',\n",
       "           'id': '900000111143003',\n",
       "           'location': '113.657120,23.630409'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111143031',\n",
       "           'location': '113.649742,23.624990'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111143004',\n",
       "           'location': '113.644516,23.621885'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111143005',\n",
       "           'location': '113.632881,23.615646'},\n",
       "          {'name': '云星村站',\n",
       "           'id': '900000111143032',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '麻三村委',\n",
       "           'id': '900000111143006',\n",
       "           'location': '113.615532,23.611467'},\n",
       "          {'name': '麻二村委',\n",
       "           'id': '900000111143007',\n",
       "           'location': '113.614601,23.604301'},\n",
       "          {'name': '麻一木棉站',\n",
       "           'id': '900000111143037',\n",
       "           'location': '113.612335,23.600824'},\n",
       "          {'name': '沙洲',\n",
       "           'id': '900000111143027',\n",
       "           'location': '113.608663,23.593490'},\n",
       "          {'name': '塘下村十社',\n",
       "           'id': '900000111143028',\n",
       "           'location': '113.608025,23.590450'},\n",
       "          {'name': '塘下村委',\n",
       "           'id': '900000111143008',\n",
       "           'location': '113.605354,23.584476'},\n",
       "          {'name': '东风村委',\n",
       "           'id': '900000111143029',\n",
       "           'location': '113.603127,23.574280'},\n",
       "          {'name': '地铁东风站',\n",
       "           'id': '900000111143009',\n",
       "           'location': '113.600799,23.567886'},\n",
       "          {'name': '从化政务服务中心',\n",
       "           'id': '900000111143012',\n",
       "           'location': '113.594440,23.550525'},\n",
       "          {'name': '从化博物馆',\n",
       "           'id': '900000111143013',\n",
       "           'location': '113.592817,23.548160'},\n",
       "          {'name': '河堤广场',\n",
       "           'id': '900000111143014',\n",
       "           'location': '113.592552,23.546762'},\n",
       "          {'name': '河滨公园',\n",
       "           'id': '900000111143015',\n",
       "           'location': '113.590714,23.547590'},\n",
       "          {'name': '新世纪广场',\n",
       "           'id': '900000111143016',\n",
       "           'location': '113.588885,23.548320'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': [],\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '从化供电局',\n",
       "          'id': '440100017386010',\n",
       "          'location': '113.587635,23.546072'},\n",
       "         'arrival_stop': {'name': '地铁太平站',\n",
       "          'id': '440100017386049',\n",
       "          'location': '113.491836,23.452470'},\n",
       "         'name': '从5路(从化图书馆总站--太平小学)',\n",
       "         'id': '440100017386',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '18692',\n",
       "         'duration': '3344',\n",
       "         'polyline': '113.587635,23.546072;113.587635,23.546068;113.587648,23.545720;113.587687,23.545217;113.587708,23.544891;113.587713,23.544748;113.587778,23.544080;113.587778,23.544054;113.587799,23.543698;113.587812,23.543511;113.587817,23.543398;113.587834,23.543008;113.587843,23.542773;113.587852,23.542778;113.587883,23.542191;113.587921,23.541672;113.587921,23.541597;113.587967,23.540907;113.587967,23.540916;113.587967,23.540924;113.587967,23.540920;113.587967,23.540798;113.587997,23.540073;113.587273,23.540039;113.587074,23.540028;113.586731,23.540018;113.586266,23.539982;113.586227,23.540110;113.586197,23.540178;113.586136,23.540243;113.586094,23.540286;113.586000,23.540318;113.585862,23.540340;113.585678,23.540286;113.585579,23.540199;113.585579,23.540195;113.585518,23.540104;113.585487,23.539982;113.585487,23.539927;113.585495,23.539858;113.585526,23.539787;113.585609,23.539692;113.585754,23.539621;113.585892,23.539604;113.585968,23.538437;113.585976,23.538389;113.585983,23.538055;113.585999,23.537800;113.586052,23.537344;113.585762,23.537287;113.585670,23.537252;113.585526,23.537163;113.585457,23.537100;113.585327,23.536913;113.585175,23.536615;113.584480,23.537090;113.583908,23.537491;113.583786,23.537355;113.583687,23.537296;113.584480,23.536776;113.585075,23.536367;113.585594,23.536106;113.585869,23.535925;113.587448,23.534878;113.588615,23.534081;113.589180,23.533697;113.589180,23.533698;113.590569,23.532760;113.590621,23.532721;113.590638,23.532713;113.591862,23.531892;113.592183,23.531671;113.593077,23.531072;113.593390,23.530855;113.593576,23.530712;113.593798,23.530590;113.593989,23.530460;113.594306,23.530247;113.594861,23.529874;113.595156,23.529674;113.595486,23.529453;113.596484,23.528776;113.596975,23.528455;113.597387,23.528181;113.597413,23.528164;113.597648,23.528003;113.598060,23.527730;113.598090,23.527708;113.598633,23.527348;113.599097,23.527031;113.599397,23.526827;113.599783,23.526567;113.600690,23.525946;113.600781,23.525885;113.601150,23.525638;113.601628,23.525282;113.601762,23.524909;113.601784,23.524718;113.601780,23.524453;113.601597,23.524214;113.601328,23.523872;113.601185,23.523711;113.600885,23.523446;113.600625,23.523281;113.600326,23.523134;113.599957,23.523008;113.599696,23.522951;113.599119,23.522886;113.598633,23.522847;113.597977,23.522795;113.597170,23.522730;113.596480,23.522674;113.596481,23.522678;113.595970,23.522640;113.595428,23.522596;113.594810,23.522551;113.593872,23.522478;113.593582,23.522453;113.591629,23.522301;113.591103,23.522257;113.590530,23.522171;113.590042,23.522072;113.589577,23.521944;113.589165,23.521805;113.588951,23.521727;113.588692,23.521616;113.588531,23.521549;113.588104,23.521338;113.587555,23.521021;113.587280,23.520842;113.586800,23.520477;113.586426,23.520168;113.586029,23.519850;113.585632,23.519522;113.585365,23.519314;113.584534,23.518616;113.584244,23.518370;113.582970,23.517313;113.582123,23.516615;113.581863,23.516388;113.581474,23.516060;113.581471,23.516055;113.581202,23.515829;113.580859,23.515547;113.580686,23.515408;113.580052,23.514909;113.579679,23.514661;113.579332,23.514462;113.579097,23.514349;113.578585,23.514136;113.578238,23.514015;113.578234,23.514015;113.576706,23.513477;113.576658,23.513459;113.576003,23.513229;113.575382,23.512999;113.574431,23.512591;113.574193,23.512474;113.574188,23.512474;113.573954,23.512361;113.573025,23.511819;113.572405,23.511402;113.571545,23.510820;113.571476,23.510768;113.571437,23.510742;113.571224,23.510564;113.570924,23.510256;113.570655,23.509970;113.570412,23.509666;113.570239,23.509414;113.570226,23.509392;113.570221,23.509392;113.569332,23.507930;113.568741,23.506962;113.568494,23.506567;113.567860,23.505538;113.567591,23.505169;113.567589,23.505173;113.567589,23.505169;113.567520,23.505070;113.567215,23.504726;113.566887,23.504431;113.566589,23.504202;113.566124,23.503916;113.565689,23.503702;113.565033,23.503447;113.563538,23.502869;113.562309,23.502405;113.560135,23.501572;113.559074,23.501171;113.558739,23.501038;113.558739,23.501041;113.558746,23.501041;113.558212,23.500847;113.557793,23.500677;113.557579,23.500582;113.557343,23.500469;113.557144,23.500360;113.556892,23.500208;113.556694,23.500065;113.556381,23.499826;113.555466,23.499054;113.555244,23.498867;113.554993,23.498676;113.554825,23.498564;113.554611,23.498421;113.554146,23.498142;113.554039,23.498085;113.554036,23.498082;113.553737,23.497921;113.552682,23.497352;113.550378,23.496115;113.548633,23.495174;113.547357,23.494488;113.546793,23.494219;113.546141,23.493893;113.546137,23.493893;113.545929,23.493789;113.545603,23.493589;113.545460,23.493459;113.544913,23.492973;113.544405,23.492569;113.544306,23.492500;113.543585,23.491992;113.542943,23.491532;113.542331,23.491115;113.541940,23.490929;113.541619,23.490812;113.541241,23.490694;113.540603,23.490530;113.540599,23.490530;113.538915,23.490104;113.536536,23.489501;113.536120,23.489397;113.534826,23.489058;113.534431,23.488928;113.534002,23.488767;113.533819,23.488689;113.533815,23.488689;113.533659,23.488624;113.533160,23.488377;113.532713,23.488129;113.532622,23.488082;113.532092,23.487730;113.531602,23.487352;113.531393,23.487266;113.530799,23.486680;113.530560,23.486411;113.529549,23.485122;113.529353,23.484883;113.529297,23.484796;113.529054,23.484488;113.528967,23.484371;113.528967,23.484375;113.528967,23.484371;113.528069,23.483212;113.527752,23.482795;113.527548,23.482409;113.526233,23.480690;113.525898,23.480239;113.525799,23.480109;113.525799,23.480104;113.525117,23.479223;113.524839,23.478893;113.524575,23.478633;113.524345,23.478442;113.524076,23.478260;113.523898,23.478147;113.523247,23.477782;113.522478,23.477352;113.521029,23.476558;113.520252,23.476141;113.519822,23.475946;113.519431,23.475803;113.519002,23.475668;113.518954,23.475655;113.518959,23.475651;113.518967,23.475651;113.518959,23.475651;113.518051,23.475361;113.517647,23.475235;113.517509,23.475191;113.517349,23.475142;113.517181,23.475086;113.515945,23.474714;113.514130,23.474131;113.514000,23.474092;113.513989,23.474110;113.513429,23.473937;113.512339,23.473581;113.511337,23.473268;113.510742,23.473095;113.510260,23.472938;113.509523,23.472678;113.508199,23.472118;113.507839,23.471940;113.507756,23.471897;113.506918,23.471467;113.505334,23.470634;113.504909,23.470412;113.504132,23.470013;113.504128,23.470013;113.503503,23.469692;113.502769,23.469310;113.501840,23.468828;113.501072,23.468420;113.500846,23.468286;113.500421,23.467990;113.500130,23.467743;113.499809,23.467413;113.499540,23.467088;113.499518,23.467062;113.499518,23.467057;113.499336,23.466797;113.499323,23.466775;113.499089,23.466337;113.498433,23.464961;113.497539,23.463073;113.496719,23.461372;113.496619,23.461194;113.496615,23.461194;113.496545,23.461063;113.496298,23.460686;113.495920,23.460204;113.495239,23.459379;113.494878,23.458958;113.494362,23.458342;113.494245,23.458199;113.494247,23.458200;113.494245,23.458199;113.494110,23.458030;113.494019,23.457917;113.493707,23.457491;113.493550,23.457257;113.493407,23.457023;113.493199,23.456649;113.492999,23.456254;113.492808,23.455807;113.492687,23.455508;113.492491,23.454887;113.492240,23.453911;113.492114,23.453659;113.491862,23.452591;113.491836,23.452470',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0540',\n",
       "         'end_time': '2030',\n",
       "         'via_num': '27',\n",
       "         'via_stops': [{'name': '从化财政局',\n",
       "           'id': '440100017386061',\n",
       "           'location': '113.587843,23.542773'},\n",
       "          {'name': '府前路南',\n",
       "           'id': '440100017386012',\n",
       "           'location': '113.587967,23.540907'},\n",
       "          {'name': '新城广场',\n",
       "           'id': '440100017386013',\n",
       "           'location': '113.585579,23.540199'},\n",
       "          {'name': '流溪河大桥',\n",
       "           'id': '440100017386015',\n",
       "           'location': '113.589180,23.533697'},\n",
       "          {'name': '地铁从化客运站(姓钟围)',\n",
       "           'id': '440100017386016',\n",
       "           'location': '113.594306,23.530247'},\n",
       "          {'name': '木壳岭',\n",
       "           'id': '440100017386046',\n",
       "           'location': '113.597413,23.528164'},\n",
       "          {'name': '联发市场',\n",
       "           'id': '440100017386018',\n",
       "           'location': '113.596480,23.522674'},\n",
       "          {'name': '新明村',\n",
       "           'id': '440100017386019',\n",
       "           'location': '113.588692,23.521616'},\n",
       "          {'name': '白田岗村',\n",
       "           'id': '440100017386020',\n",
       "           'location': '113.581474,23.516060'},\n",
       "          {'name': '珠江学院',\n",
       "           'id': '440100017386021',\n",
       "           'location': '113.578238,23.514015'},\n",
       "          {'name': '沙贝村',\n",
       "           'id': '440100017386022',\n",
       "           'location': '113.574193,23.512474'},\n",
       "          {'name': '赤草村',\n",
       "           'id': '440100017386023',\n",
       "           'location': '113.570226,23.509392'},\n",
       "          {'name': '店头',\n",
       "           'id': '440100017386057',\n",
       "           'location': '113.567591,23.505169'},\n",
       "          {'name': '地铁赤草站',\n",
       "           'id': '440100017386025',\n",
       "           'location': '113.558739,23.501038'},\n",
       "          {'name': '邓村路口',\n",
       "           'id': '440100017386026',\n",
       "           'location': '113.554039,23.498085'},\n",
       "          {'name': '元洲岗',\n",
       "           'id': '440100017386027',\n",
       "           'location': '113.546141,23.493893'},\n",
       "          {'name': '环亚工业园',\n",
       "           'id': '440100017386028',\n",
       "           'location': '113.544306,23.492500'},\n",
       "          {'name': '南洋英文学校',\n",
       "           'id': '440100017386029',\n",
       "           'location': '113.540603,23.490530'},\n",
       "          {'name': '神岗村',\n",
       "           'id': '440100017386030',\n",
       "           'location': '113.533819,23.488689'},\n",
       "          {'name': '神岗墟',\n",
       "           'id': '440100017386031',\n",
       "           'location': '113.528967,23.484371'},\n",
       "          {'name': '神岗中学',\n",
       "           'id': '440100017386047',\n",
       "           'location': '113.525799,23.480109'},\n",
       "          {'name': '佛岗村',\n",
       "           'id': '440100017386062',\n",
       "           'location': '113.518954,23.475655'},\n",
       "          {'name': '地铁神岗站',\n",
       "           'id': '440100017386053',\n",
       "           'location': '113.514000,23.474092'},\n",
       "          {'name': '连塘路口',\n",
       "           'id': '440100017386035',\n",
       "           'location': '113.504132,23.470013'},\n",
       "          {'name': '大塘边站',\n",
       "           'id': '440100017386036',\n",
       "           'location': '113.499518,23.467062'},\n",
       "          {'name': '水南村',\n",
       "           'id': '440100017386037',\n",
       "           'location': '113.496619,23.461194'},\n",
       "          {'name': '大城云山花园',\n",
       "           'id': '440100017386038',\n",
       "           'location': '113.494245,23.458199'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.491829,23.452469',\n",
       "       'destination': '113.495598,23.450920',\n",
       "       'distance': '917',\n",
       "       'duration': '786',\n",
       "       'steps': [{'instruction': '沿广从南路辅路步行37米右转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '37',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491829,23.452469;113.491760,23.452145',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行15米右转',\n",
       "         'road': [],\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491760,23.452139;113.491615,23.452166',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行213米左转',\n",
       "         'road': [],\n",
       "         'distance': '213',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491615,23.452166;113.491547,23.452187;113.491631,23.452522;113.492035,23.452444;113.492371,23.452387;113.492516,23.453030;113.492332,23.453068',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿广从南路辅路步行204米左转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '204',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492332,23.453068;113.492226,23.452461;113.492096,23.451880;113.491959,23.451250',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行51米左转',\n",
       "         'road': [],\n",
       "         'distance': '51',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.451246;113.492020,23.451199;113.492073,23.451120;113.492104,23.450985;113.492088,23.450829',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿华软大道步行250米右转',\n",
       "         'road': '华软大道',\n",
       "         'distance': '250',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492088,23.450825;113.492241,23.450804;113.492798,23.450689;113.493095,23.450647;113.493675,23.450533;113.494514,23.450369',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行29米右转',\n",
       "         'road': [],\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494514,23.450365;113.494514,23.450304;113.494576,23.450260;113.494652,23.450270;113.494690,23.450325',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿求知路步行15米左转',\n",
       "         'road': '求知路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494690,23.450325;113.494843,23.450300',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行103米',\n",
       "         'road': '博学路',\n",
       "         'distance': '103',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494843,23.450294;113.495323,23.450699;113.495598,23.450920',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '7.0',\n",
       "    'duration': '5854',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2260',\n",
       "    'distance': '36849',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.679016,23.632349',\n",
       "       'destination': '113.676613,23.631285',\n",
       "       'distance': '513',\n",
       "       'duration': '439',\n",
       "       'steps': [{'instruction': '步行57米右转',\n",
       "         'road': [],\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.679016,23.632349;113.678528,23.632097',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行47米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678528,23.632092;113.678398,23.632166;113.678101,23.632261',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行218米左转',\n",
       "         'road': [],\n",
       "         'distance': '218',\n",
       "         'duration': [],\n",
       "         'polyline': '113.678101,23.632261;113.677834,23.632261;113.677551,23.632200;113.677399,23.632179;113.677284,23.632200;113.677177,23.632244;113.677017,23.632357;113.676811,23.632534;113.676582,23.632778;113.676430,23.632904;113.676292,23.632969',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行191米到达中大南方学院',\n",
       "         'road': '博学路',\n",
       "         'distance': '191',\n",
       "         'duration': [],\n",
       "         'polyline': '113.676285,23.632969;113.676292,23.632227;113.676338,23.631948;113.676430,23.631676;113.676491,23.631540;113.676613,23.631285',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达中大南方学院'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '中大南方学院',\n",
       "          'id': '900000111141002',\n",
       "          'location': '113.676613,23.631281'},\n",
       "         'arrival_stop': {'name': '从化汽车站总站',\n",
       "          'id': '900000111141021',\n",
       "          'location': '113.599414,23.527556'},\n",
       "         'name': '从15路(中大南方学院--从化汽车站总站)',\n",
       "         'id': '900000111141',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '19692',\n",
       "         'duration': '3143',\n",
       "         'polyline': '113.676613,23.631281;113.676460,23.631588;113.676430,23.631672;113.676338,23.631945;113.676292,23.632223;113.676285,23.632969;113.676285,23.633560;113.676300,23.633738;113.676331,23.633875;113.676399,23.634016;113.676460,23.634111;113.676521,23.634193;113.676781,23.634409;113.676857,23.634357;113.676933,23.634340;113.677032,23.634354;113.677094,23.634396;113.677139,23.634459;113.677147,23.634535;113.677139,23.634600;113.677086,23.634663;113.677032,23.634701;113.676918,23.634718;113.676857,23.634701;113.676788,23.634657;113.675262,23.636129;113.675156,23.636263;113.675026,23.636467;113.674973,23.636566;113.674957,23.636702;113.674957,23.636845;113.674995,23.636995;113.675377,23.637886;113.675430,23.638042;113.675522,23.638659;113.675529,23.638998;113.675514,23.639132;113.675446,23.639311;113.675331,23.639582;113.675102,23.640036;113.675003,23.640186;113.674309,23.641024;113.673347,23.642139;113.672981,23.642536;113.672935,23.642578;113.672173,23.643307;113.671707,23.643766;113.671432,23.644045;113.673103,23.644968;113.674362,23.645651;113.675461,23.646276;113.675964,23.646635;113.676407,23.647018;113.676376,23.647089;113.675964,23.646744;113.675735,23.646566;113.675468,23.646385;113.675095,23.646172;113.673004,23.645004;113.669968,23.643330;113.669167,23.642881;113.668770,23.642673;113.668594,23.642578;113.667007,23.641693;113.666145,23.641171;113.665314,23.640564;113.665253,23.640511;113.665016,23.640301;113.664772,23.640064;113.664551,23.639812;113.664406,23.639662;113.664207,23.639400;113.663925,23.639021;113.663574,23.638451;113.663361,23.638020;113.662323,23.635933;113.661949,23.635181;113.661461,23.634266;113.661224,23.633898;113.660843,23.633383;113.660683,23.633192;113.660248,23.632704;113.659721,23.632172;113.659370,23.631880;113.659256,23.631794;113.658989,23.631588;113.658897,23.631519;113.658211,23.631102;113.657707,23.630760;113.657425,23.630590;113.656944,23.630304;113.656940,23.630304;113.654336,23.628741;113.653850,23.628416;113.653598,23.628225;113.652383,23.627179;113.650165,23.625326;113.650022,23.625221;113.649766,23.625013;113.649731,23.624987;113.649731,23.624983;113.648980,23.624384;113.648611,23.624063;113.647843,23.623442;113.647361,23.623090;113.646780,23.622721;113.646345,23.622465;113.645981,23.622287;113.645595,23.622131;113.645117,23.621992;113.644709,23.621914;113.644640,23.621901;113.644635,23.621901;113.644375,23.621862;113.643255,23.621749;113.642578,23.621667;113.642474,23.621645;113.642027,23.621541;113.641450,23.621354;113.640525,23.621033;113.639332,23.620603;113.639184,23.620543;113.638850,23.620412;113.638433,23.620213;113.638325,23.620156;113.638329,23.620155;113.636047,23.618944;113.635544,23.618668;113.635254,23.618481;113.634750,23.618097;113.634514,23.617891;113.634254,23.617622;113.633980,23.617271;113.633636,23.616779;113.633057,23.615911;113.632957,23.615774;113.632401,23.614927;113.631912,23.614172;113.631660,23.613710;113.631432,23.613142;113.631287,23.612659;113.630905,23.611076;113.630844,23.610802;113.630844,23.610798;113.630768,23.610516;113.630661,23.610060;113.630569,23.609705;113.630554,23.609617;113.630501,23.609388;113.630119,23.607822;113.629776,23.606388;113.629395,23.604740;113.628891,23.602587;113.628479,23.600821;113.628136,23.599293;113.627968,23.598680;113.627953,23.598633;113.627884,23.598433;113.627785,23.598202;113.627632,23.597919;113.627487,23.597683;113.627281,23.597401;113.627037,23.597139;113.626106,23.596230;113.625641,23.595755;113.624992,23.595139;113.624092,23.594326;113.623161,23.593433;113.622879,23.593147;113.622734,23.592981;113.622383,23.592590;113.622055,23.592186;113.621872,23.591957;113.621574,23.591545;113.621292,23.591133;113.621117,23.590864;113.620880,23.590433;113.620735,23.590164;113.620674,23.590054;113.620673,23.590052;113.620603,23.589913;113.619475,23.587643;113.619401,23.587491;113.619401,23.587487;113.619175,23.587040;113.618984,23.586658;113.618893,23.586471;113.618598,23.585868;113.618108,23.584874;113.617930,23.584440;113.617769,23.583928;113.617708,23.583646;113.617630,23.583073;113.617582,23.582478;113.617578,23.582357;113.617578,23.582361;113.617584,23.582365;113.617584,23.582359;113.617554,23.581884;113.617485,23.580811;113.617477,23.580591;113.617485,23.580204;113.617493,23.579849;113.617554,23.579384;113.617668,23.578743;113.617760,23.578316;113.617790,23.578138;113.618042,23.576904;113.618080,23.576723;113.618095,23.576658;113.618118,23.576557;113.618187,23.576189;113.618347,23.575378;113.618416,23.574808;113.618423,23.574497;113.618408,23.574158;113.618286,23.573481;113.618263,23.573381;113.618210,23.573103;113.618210,23.573111;113.618210,23.573120;113.618210,23.573116;113.618172,23.572929;113.618080,23.572432;113.618034,23.572153;113.618011,23.571901;113.617989,23.571444;113.618034,23.570911;113.618187,23.569813;113.618332,23.568825;113.618462,23.567951;113.618652,23.566698;113.618759,23.565947;113.618790,23.565674;113.618828,23.565474;113.618843,23.565365;113.618874,23.565182;113.618896,23.565014;113.618896,23.564964;113.619118,23.563465;113.619171,23.563156;113.619263,23.562523;113.619286,23.562109;113.619263,23.561775;113.619232,23.561602;113.619171,23.561384;113.619011,23.561010;113.618790,23.560673;113.618652,23.560495;113.618149,23.559973;113.617950,23.559765;113.616966,23.558811;113.615730,23.557600;113.615547,23.557409;113.615356,23.557222;113.615105,23.556976;113.614723,23.556602;113.614052,23.555933;113.613762,23.555609;113.613365,23.555122;113.613190,23.554810;113.613129,23.554688;113.613052,23.554518;113.612823,23.554016;113.612648,23.553556;113.612625,23.553484;113.612602,23.553438;113.612549,23.553284;113.612526,23.553211;113.612526,23.553207;113.612282,23.552565;113.612068,23.551991;113.611961,23.551771;113.611816,23.551476;113.611557,23.551102;113.611328,23.550846;113.611069,23.550591;113.610443,23.550087;113.610435,23.550077;113.609962,23.549686;113.609459,23.549290;113.609207,23.549063;113.609055,23.548923;113.608841,23.548676;113.608757,23.548571;113.608536,23.548216;113.608398,23.547951;113.608315,23.547665;113.608276,23.547514;113.608231,23.547321;113.608185,23.547031;113.608154,23.546612;113.608155,23.546610;113.608121,23.546150;113.608082,23.545586;113.608077,23.545451;113.608090,23.545013;113.608142,23.544488;113.608160,23.544405;113.608290,23.543698;113.608312,23.543607;113.608398,23.543199;113.608637,23.542118;113.608750,23.541584;113.608954,23.540612;113.608971,23.540530;113.609123,23.539800;113.609323,23.538889;113.609366,23.538637;113.609414,23.538329;113.609449,23.537956;113.609466,23.537617;113.609466,23.537287;113.609444,23.536819;113.609414,23.536536;113.609332,23.536102;113.609214,23.535690;113.609214,23.535686;113.609106,23.535321;113.608980,23.534909;113.608733,23.534227;113.608234,23.532986;113.608121,23.532713;113.608008,23.532444;113.607795,23.531910;113.607682,23.531623;113.607244,23.530547;113.607122,23.530247;113.607118,23.530243;113.606984,23.529922;113.606858,23.529683;113.606645,23.529340;113.606484,23.529141;113.606380,23.529028;113.606124,23.528776;113.605894,23.528576;113.604944,23.527782;113.604388,23.527326;113.603707,23.526758;113.603559,23.526628;113.603216,23.526306;113.603142,23.526228;113.602765,23.525773;113.602691,23.525673;113.602374,23.525477;113.602248,23.525430;113.602161,23.525412;113.602031,23.525412;113.601658,23.525499;113.601263,23.525764;113.600777,23.526059;113.599852,23.526680;113.599466,23.526931;113.599149,23.527135;113.599227,23.527253;113.599414,23.527556',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0900',\n",
       "         'end_time': '1800',\n",
       "         'via_num': '19',\n",
       "         'via_stops': [{'name': '卫东',\n",
       "           'id': '900000111141003',\n",
       "           'location': '113.671707,23.643766'},\n",
       "          {'name': '交警温泉中队',\n",
       "           'id': '900000111141029',\n",
       "           'location': '113.656944,23.630304'},\n",
       "          {'name': '冲口',\n",
       "           'id': '900000111141022',\n",
       "           'location': '113.649731,23.624987'},\n",
       "          {'name': '牛步迳',\n",
       "           'id': '900000111141006',\n",
       "           'location': '113.644640,23.621901'},\n",
       "          {'name': '华辉度假村',\n",
       "           'id': '900000111141023',\n",
       "           'location': '113.638325,23.620156'},\n",
       "          {'name': '温泉镇政府',\n",
       "           'id': '900000111141008',\n",
       "           'location': '113.632957,23.615774'},\n",
       "          {'name': '云星村',\n",
       "           'id': '900000111141024',\n",
       "           'location': '113.630844,23.610802'},\n",
       "          {'name': '宣星路口',\n",
       "           'id': '900000111141010',\n",
       "           'location': '113.628891,23.602587'},\n",
       "          {'name': '新华',\n",
       "           'id': '900000111141011',\n",
       "           'location': '113.620674,23.590054'},\n",
       "          {'name': '水底村',\n",
       "           'id': '900000111141012',\n",
       "           'location': '113.619401,23.587491'},\n",
       "          {'name': '南洋学院',\n",
       "           'id': '900000111141028',\n",
       "           'location': '113.617578,23.582357'},\n",
       "          {'name': '江埔社区',\n",
       "           'id': '900000111141014',\n",
       "           'location': '113.618210,23.573103'},\n",
       "          {'name': '沙塱村',\n",
       "           'id': '900000111141015',\n",
       "           'location': '113.615547,23.557409'},\n",
       "          {'name': '凤院北',\n",
       "           'id': '900000111141025',\n",
       "           'location': '113.612526,23.553211'},\n",
       "          {'name': '凤院路口',\n",
       "           'id': '900000111141016',\n",
       "           'location': '113.610443,23.550087'},\n",
       "          {'name': '江埔村二社',\n",
       "           'id': '900000111141026',\n",
       "           'location': '113.608154,23.546612'},\n",
       "          {'name': '江埔村',\n",
       "           'id': '900000111141018',\n",
       "           'location': '113.608954,23.540612'},\n",
       "          {'name': '迎福里',\n",
       "           'id': '900000111141019',\n",
       "           'location': '113.609214,23.535690'},\n",
       "          {'name': '城建学院',\n",
       "           'id': '900000111141020',\n",
       "           'location': '113.607122,23.530247'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.599411,23.527555',\n",
       "       'destination': '113.594719,23.531767',\n",
       "       'distance': '929',\n",
       "       'duration': '796',\n",
       "       'steps': [{'instruction': '步行33米右转',\n",
       "         'road': [],\n",
       "         'distance': '33',\n",
       "         'duration': [],\n",
       "         'polyline': '113.599411,23.527555;113.599243,23.527306',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行134米左转',\n",
       "         'road': [],\n",
       "         'distance': '134',\n",
       "         'duration': [],\n",
       "         'polyline': '113.599243,23.527300;113.599220,23.527405;113.599312,23.527592;113.598587,23.528202',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行59米右转',\n",
       "         'road': [],\n",
       "         'distance': '59',\n",
       "         'duration': [],\n",
       "         'polyline': '113.598587,23.528202;113.598404,23.527960;113.598312,23.527840;113.598244,23.527756',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿从城大道步行526米右转',\n",
       "         'road': '从城大道',\n",
       "         'distance': '526',\n",
       "         'duration': [],\n",
       "         'polyline': '113.598244,23.527752;113.597733,23.528099;113.597473,23.528273;113.597092,23.528534;113.596565,23.528875;113.596260,23.529089;113.595207,23.529787;113.594910,23.529987;113.594162,23.530491;113.594070,23.530552;113.594040,23.530573',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行177米到达从化客运站',\n",
       "         'road': [],\n",
       "         'distance': '177',\n",
       "         'duration': [],\n",
       "         'polyline': '113.594032,23.530573;113.594093,23.530716;113.593964,23.530838;113.593857,23.530937;113.594650,23.531696;113.594719,23.531767',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达从化客运站'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '从化客运站',\n",
       "          'id': '900000074702002',\n",
       "          'location': '113.594721,23.531769'},\n",
       "         'arrival_stop': {'name': '太平',\n",
       "          'id': '900000074702005',\n",
       "          'location': '113.491955,23.452090'},\n",
       "         'name': '地铁14号线(东风--嘉禾望岗)',\n",
       "         'id': '900000074702',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '14897',\n",
       "         'duration': '774',\n",
       "         'polyline': '113.594721,23.531769;113.593793,23.530889;113.593514,23.530681;113.582531,23.523276;113.581939,23.522822;113.580606,23.521696;113.577554,23.519552;113.577306,23.519352;113.576647,23.518756;113.576100,23.518162;113.575851,23.517843;113.575586,23.517468;113.575373,23.517137;113.571854,23.511367;113.571405,23.510602;113.571158,23.510226;113.570946,23.509891;113.570794,23.509630;113.570515,23.509158;113.569879,23.508135;113.569313,23.507131;113.568589,23.506017;113.568113,23.505381;113.567879,23.505069;113.567466,23.504621;113.567032,23.504215;113.566611,23.503881;113.566249,23.503674;113.565962,23.503527;113.565583,23.503355;113.564980,23.503094;113.562662,23.502186;113.561001,23.501509;113.560204,23.501199;113.559508,23.500933;113.557021,23.500094;113.556656,23.499905;113.556307,23.499664;113.555753,23.499216;113.554867,23.498542;113.554105,23.498082;113.552442,23.497174;113.551145,23.496444;113.550153,23.495930;113.548415,23.494993;113.546750,23.494078;113.545995,23.493606;113.545431,23.493214;113.544218,23.492366;113.543013,23.491516;113.542268,23.491042;113.541798,23.490826;113.541394,23.490688;113.537759,23.489749;113.534858,23.489004;113.534189,23.488774;113.533639,23.488559;113.533235,23.488365;113.532487,23.487938;113.531679,23.487383;113.531354,23.487147;113.531054,23.486862;113.530690,23.486477;113.530533,23.486275;113.530371,23.486068;113.529356,23.484737;113.528785,23.484076;113.528050,23.483065;113.527645,23.482451;113.527383,23.482099;113.525249,23.479331;113.524824,23.478821;113.524484,23.478512;113.524171,23.478277;113.523707,23.477996;113.520505,23.476234;113.519798,23.475886;113.518851,23.475543;113.518173,23.475343;113.517396,23.475101;113.516620,23.474853;113.514628,23.474225;113.513654,23.473944;113.512313,23.473523;113.510575,23.472981;113.510025,23.472795;113.509156,23.472477;113.508554,23.472225;113.507918,23.471936;113.506245,23.471060;113.502355,23.469038;113.501282,23.468473;113.500901,23.468254;113.500540,23.468019;113.500190,23.467722;113.499845,23.467380;113.499424,23.466854;113.499246,23.466540;113.498897,23.465841;113.498032,23.463973;113.496780,23.461391;113.496584,23.460998;113.496135,23.460378;113.495288,23.459364;113.494274,23.458157;113.493617,23.457262;113.493341,23.456794;113.493016,23.456129;113.492764,23.455544;113.492576,23.454966;113.492361,23.454088;113.492091,23.452705;113.491955,23.452090',\n",
       "         'bustimetag': '0',\n",
       "         'start_time': '0600',\n",
       "         'end_time': '2235',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '赤草',\n",
       "           'id': '900000074702003',\n",
       "           'location': '113.560204,23.501199'},\n",
       "          {'name': '神岗',\n",
       "           'id': '900000074702004',\n",
       "           'location': '113.517396,23.475101'}]}]},\n",
       "      'entrance': {'name': 'D口', 'location': '113.594101,23.530722'},\n",
       "      'exit': {'name': 'B口', 'location': '113.492523,23.453032'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.491959,23.452087',\n",
       "       'destination': '113.495598,23.450920',\n",
       "       'distance': '818',\n",
       "       'duration': '701',\n",
       "       'steps': [{'instruction': '步行166米左转',\n",
       "         'road': [],\n",
       "         'distance': '166',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.452087;113.492035,23.452438;113.492371,23.452387;113.492516,23.453030;113.492332,23.453068',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿广从南路辅路步行204米左转',\n",
       "         'road': '广从南路辅路',\n",
       "         'distance': '204',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492332,23.453068;113.492226,23.452461;113.492096,23.451880;113.491959,23.451250',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行51米左转',\n",
       "         'road': [],\n",
       "         'distance': '51',\n",
       "         'duration': [],\n",
       "         'polyline': '113.491959,23.451246;113.492020,23.451199;113.492073,23.451120;113.492104,23.450985;113.492088,23.450829',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿华软大道步行250米右转',\n",
       "         'road': '华软大道',\n",
       "         'distance': '250',\n",
       "         'duration': [],\n",
       "         'polyline': '113.492088,23.450825;113.492241,23.450804;113.492798,23.450689;113.493095,23.450647;113.493675,23.450533;113.494514,23.450369',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行29米右转',\n",
       "         'road': [],\n",
       "         'distance': '29',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494514,23.450365;113.494514,23.450304;113.494576,23.450260;113.494652,23.450270;113.494690,23.450325',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿求知路步行15米左转',\n",
       "         'road': '求知路',\n",
       "         'distance': '15',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494690,23.450325;113.494843,23.450300',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿博学路步行103米',\n",
       "         'road': '博学路',\n",
       "         'distance': '103',\n",
       "         'duration': [],\n",
       "         'polyline': '113.494843,23.450294;113.495323,23.450699;113.495598,23.450920',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "origin=\"113.679287,23.632575\"\n",
    "destination=\"113.495460,23.451063\"\n",
    "city=\"广州\"\n",
    "cityd=\"广州\"\n",
    "strategy=\"0\"\n",
    "bus(key,origin,destination,city,cityd,strategy)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 行政区域查询是一类简单的HTTP接口，根据用户输入的搜索条件可以帮助用户快速的查找特定的行政区域信息。\n",
    "### 例如：中国>山东省>济南市>历下区>舜华路街道（国>省>市>区>街道）。\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 特别说明\n",
    "> 1. 目前部分城市和省直辖县因为没有区县的概念，故在市级下方直接显示街道。例如：广东-东莞、海南-文昌市。\n",
    "> 2. 街道级别是不能返回边界数据polyline的，乡镇街道级别返回的adcode是所属区县的adcode。\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 行政区域查询\n",
    "> 1. url:https://restapi.amap.com/v3/config/district?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：key\n",
    "> 4. 可选参数：keywords查询关键字\n",
    ">> 规则：只支持单个关键词语搜索关键词支持：行政区名称、citycode、adcode\n",
    ">>> 例如，在subdistrict=2，搜索省份（例如山东），能够显示市（例如济南），区（例如历下区）\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "def municipality(key,keywords=None,subdistrict='2',page='1',offset='20',extensions='base',filter='',callback=None,output='json'):\n",
    "    xzq_url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params = {\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'extensions':extensions,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'filter':filter,\n",
    "        'callback':callback,\n",
    "        'output':output\n",
    "    }\n",
    "    r = requests.get(xzq_url,params)        ### 大姐！注意这里的空格格式呀！\n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 87,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': [],\n",
       "   'adcode': '440000',\n",
       "   'name': '广东省',\n",
       "   'center': '113.280637,23.125178',\n",
       "   'level': 'province',\n",
       "   'districts': [{'citycode': '0754',\n",
       "     'adcode': '440500',\n",
       "     'name': '汕头市',\n",
       "     'center': '116.708463,23.37102',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0754',\n",
       "       'adcode': '440515',\n",
       "       'name': '澄海区',\n",
       "       'center': '116.76336,23.46844',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0754',\n",
       "       'adcode': '440514',\n",
       "       'name': '潮南区',\n",
       "       'center': '116.423607,23.249798',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0754',\n",
       "       'adcode': '440523',\n",
       "       'name': '南澳县',\n",
       "       'center': '117.027105,23.419562',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0754',\n",
       "       'adcode': '440512',\n",
       "       'name': '濠江区',\n",
       "       'center': '116.729528,23.279345',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0754',\n",
       "       'adcode': '440513',\n",
       "       'name': '潮阳区',\n",
       "       'center': '116.602602,23.262336',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0754',\n",
       "       'adcode': '440511',\n",
       "       'name': '金平区',\n",
       "       'center': '116.703583,23.367071',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0754',\n",
       "       'adcode': '440507',\n",
       "       'name': '龙湖区',\n",
       "       'center': '116.732015,23.373754',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0757',\n",
       "     'adcode': '440600',\n",
       "     'name': '佛山市',\n",
       "     'center': '113.122717,23.028762',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0757',\n",
       "       'adcode': '440607',\n",
       "       'name': '三水区',\n",
       "       'center': '112.899414,23.16504',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0757',\n",
       "       'adcode': '440608',\n",
       "       'name': '高明区',\n",
       "       'center': '112.882123,22.893855',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0757',\n",
       "       'adcode': '440606',\n",
       "       'name': '顺德区',\n",
       "       'center': '113.281826,22.75851',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0757',\n",
       "       'adcode': '440605',\n",
       "       'name': '南海区',\n",
       "       'center': '113.145577,23.031562',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0757',\n",
       "       'adcode': '440604',\n",
       "       'name': '禅城区',\n",
       "       'center': '113.112414,23.019643',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0758',\n",
       "     'adcode': '441200',\n",
       "     'name': '肇庆市',\n",
       "     'center': '112.472529,23.051546',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0758',\n",
       "       'adcode': '441224',\n",
       "       'name': '怀集县',\n",
       "       'center': '112.182466,23.913072',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441225',\n",
       "       'name': '封开县',\n",
       "       'center': '111.502973,23.434731',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441223',\n",
       "       'name': '广宁县',\n",
       "       'center': '112.440419,23.631486',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441284',\n",
       "       'name': '四会市',\n",
       "       'center': '112.695028,23.340324',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441226',\n",
       "       'name': '德庆县',\n",
       "       'center': '111.78156,23.141711',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441203',\n",
       "       'name': '鼎湖区',\n",
       "       'center': '112.565249,23.155822',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441202',\n",
       "       'name': '端州区',\n",
       "       'center': '112.472329,23.052662',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0758',\n",
       "       'adcode': '441204',\n",
       "       'name': '高要区',\n",
       "       'center': '112.460846,23.027694',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0752',\n",
       "     'adcode': '441300',\n",
       "     'name': '惠州市',\n",
       "     'center': '114.412599,23.079404',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0752',\n",
       "       'adcode': '441324',\n",
       "       'name': '龙门县',\n",
       "       'center': '114.259986,23.723894',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0752',\n",
       "       'adcode': '441323',\n",
       "       'name': '惠东县',\n",
       "       'center': '114.723092,22.983036',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0752',\n",
       "       'adcode': '441322',\n",
       "       'name': '博罗县',\n",
       "       'center': '114.284254,23.167575',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0752',\n",
       "       'adcode': '441303',\n",
       "       'name': '惠阳区',\n",
       "       'center': '114.469444,22.78851',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0752',\n",
       "       'adcode': '441302',\n",
       "       'name': '惠城区',\n",
       "       'center': '114.413978,23.079883',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0755',\n",
       "     'adcode': '440300',\n",
       "     'name': '深圳市',\n",
       "     'center': '114.085947,22.547',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0755',\n",
       "       'adcode': '440306',\n",
       "       'name': '宝安区',\n",
       "       'center': '113.828671,22.754741',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440305',\n",
       "       'name': '南山区',\n",
       "       'center': '113.92943,22.531221',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440304',\n",
       "       'name': '福田区',\n",
       "       'center': '114.05096,22.541009',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440308',\n",
       "       'name': '盐田区',\n",
       "       'center': '114.235366,22.555069',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440303',\n",
       "       'name': '罗湖区',\n",
       "       'center': '114.123885,22.555341',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440310',\n",
       "       'name': '坪山区',\n",
       "       'center': '114.338441,22.69423',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440307',\n",
       "       'name': '龙岗区',\n",
       "       'center': '114.251372,22.721511',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440309',\n",
       "       'name': '龙华区',\n",
       "       'center': '114.044346,22.691963',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0755',\n",
       "       'adcode': '440311',\n",
       "       'name': '光明区',\n",
       "       'center': '113.935895,22.748816',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0759',\n",
       "     'adcode': '440800',\n",
       "     'name': '湛江市',\n",
       "     'center': '110.364977,21.274898',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0759',\n",
       "       'adcode': '440881',\n",
       "       'name': '廉江市',\n",
       "       'center': '110.284961,21.611281',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440883',\n",
       "       'name': '吴川市',\n",
       "       'center': '110.780508,21.428453',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440825',\n",
       "       'name': '徐闻县',\n",
       "       'center': '110.175718,20.326083',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440882',\n",
       "       'name': '雷州市',\n",
       "       'center': '110.088275,20.908523',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440811',\n",
       "       'name': '麻章区',\n",
       "       'center': '110.329167,21.265997',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440804',\n",
       "       'name': '坡头区',\n",
       "       'center': '110.455632,21.24441',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440803',\n",
       "       'name': '霞山区',\n",
       "       'center': '110.406382,21.194229',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440823',\n",
       "       'name': '遂溪县',\n",
       "       'center': '110.255321,21.376915',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0759',\n",
       "       'adcode': '440802',\n",
       "       'name': '赤坎区',\n",
       "       'center': '110.361634,21.273365',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0756',\n",
       "     'adcode': '440400',\n",
       "     'name': '珠海市',\n",
       "     'center': '113.553986,22.224979',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0756',\n",
       "       'adcode': '440403',\n",
       "       'name': '斗门区',\n",
       "       'center': '113.297739,22.209117',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0756',\n",
       "       'adcode': '440404',\n",
       "       'name': '金湾区',\n",
       "       'center': '113.345071,22.139122',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0756',\n",
       "       'adcode': '440402',\n",
       "       'name': '香洲区',\n",
       "       'center': '113.55027,22.271249',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0768',\n",
       "     'adcode': '445100',\n",
       "     'name': '潮州市',\n",
       "     'center': '116.632301,23.661701',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0768',\n",
       "       'adcode': '445122',\n",
       "       'name': '饶平县',\n",
       "       'center': '117.00205,23.668171',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0768',\n",
       "       'adcode': '445102',\n",
       "       'name': '湘桥区',\n",
       "       'center': '116.63365,23.664675',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0768',\n",
       "       'adcode': '445103',\n",
       "       'name': '潮安区',\n",
       "       'center': '116.67931,23.461012',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0668',\n",
       "     'adcode': '440900',\n",
       "     'name': '茂名市',\n",
       "     'center': '110.919229,21.659751',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0668',\n",
       "       'adcode': '440983',\n",
       "       'name': '信宜市',\n",
       "       'center': '110.941656,22.352681',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0668',\n",
       "       'adcode': '440981',\n",
       "       'name': '高州市',\n",
       "       'center': '110.853251,21.915153',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0668',\n",
       "       'adcode': '440982',\n",
       "       'name': '化州市',\n",
       "       'center': '110.63839,21.654953',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0668',\n",
       "       'adcode': '440904',\n",
       "       'name': '电白区',\n",
       "       'center': '111.007264,21.507219',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0668',\n",
       "       'adcode': '440902',\n",
       "       'name': '茂南区',\n",
       "       'center': '110.920542,21.660425',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0750',\n",
       "     'adcode': '440700',\n",
       "     'name': '江门市',\n",
       "     'center': '113.094942,22.590431',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0750',\n",
       "       'adcode': '440784',\n",
       "       'name': '鹤山市',\n",
       "       'center': '112.961795,22.768104',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0750',\n",
       "       'adcode': '440704',\n",
       "       'name': '江海区',\n",
       "       'center': '113.120601,22.572211',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0750',\n",
       "       'adcode': '440783',\n",
       "       'name': '开平市',\n",
       "       'center': '112.692262,22.366286',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0750',\n",
       "       'adcode': '440781',\n",
       "       'name': '台山市',\n",
       "       'center': '112.793414,22.250713',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0750',\n",
       "       'adcode': '440785',\n",
       "       'name': '恩平市',\n",
       "       'center': '112.314051,22.182956',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0750',\n",
       "       'adcode': '440705',\n",
       "       'name': '新会区',\n",
       "       'center': '113.038584,22.520247',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0750',\n",
       "       'adcode': '440703',\n",
       "       'name': '蓬江区',\n",
       "       'center': '113.07859,22.59677',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0762',\n",
       "     'adcode': '441600',\n",
       "     'name': '河源市',\n",
       "     'center': '114.697802,23.746266',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0762',\n",
       "       'adcode': '441624',\n",
       "       'name': '和平县',\n",
       "       'center': '114.941473,24.44318',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0762',\n",
       "       'adcode': '441622',\n",
       "       'name': '龙川县',\n",
       "       'center': '115.256415,24.101174',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0762',\n",
       "       'adcode': '441623',\n",
       "       'name': '连平县',\n",
       "       'center': '114.495952,24.364227',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0762',\n",
       "       'adcode': '441625',\n",
       "       'name': '东源县',\n",
       "       'center': '114.742711,23.789093',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0762',\n",
       "       'adcode': '441602',\n",
       "       'name': '源城区',\n",
       "       'center': '114.696828,23.746255',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0762',\n",
       "       'adcode': '441621',\n",
       "       'name': '紫金县',\n",
       "       'center': '115.184383,23.633744',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0766',\n",
       "     'adcode': '445300',\n",
       "     'name': '云浮市',\n",
       "     'center': '112.044439,22.929801',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0766',\n",
       "       'adcode': '445322',\n",
       "       'name': '郁南县',\n",
       "       'center': '111.535921,23.237709',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0766',\n",
       "       'adcode': '445381',\n",
       "       'name': '罗定市',\n",
       "       'center': '111.578201,22.765415',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0766',\n",
       "       'adcode': '445321',\n",
       "       'name': '新兴县',\n",
       "       'center': '112.23083,22.703204',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0766',\n",
       "       'adcode': '445302',\n",
       "       'name': '云城区',\n",
       "       'center': '112.04471,22.930827',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0766',\n",
       "       'adcode': '445303',\n",
       "       'name': '云安区',\n",
       "       'center': '112.005609,23.073152',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0660',\n",
       "     'adcode': '441500',\n",
       "     'name': '汕尾市',\n",
       "     'center': '115.364238,22.774485',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0660',\n",
       "       'adcode': '441521',\n",
       "       'name': '海丰县',\n",
       "       'center': '115.337324,22.971042',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0660',\n",
       "       'adcode': '441523',\n",
       "       'name': '陆河县',\n",
       "       'center': '115.657565,23.302682',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0660',\n",
       "       'adcode': '441581',\n",
       "       'name': '陆丰市',\n",
       "       'center': '115.644203,22.946104',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0660',\n",
       "       'adcode': '441502',\n",
       "       'name': '城区',\n",
       "       'center': '115.363667,22.776227',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0662',\n",
       "     'adcode': '441700',\n",
       "     'name': '阳江市',\n",
       "     'center': '111.975107,21.859222',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0662',\n",
       "       'adcode': '441781',\n",
       "       'name': '阳春市',\n",
       "       'center': '111.7905,22.169598',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0662',\n",
       "       'adcode': '441702',\n",
       "       'name': '江城区',\n",
       "       'center': '111.968909,21.859182',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0662',\n",
       "       'adcode': '441721',\n",
       "       'name': '阳西县',\n",
       "       'center': '111.617556,21.75367',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0662',\n",
       "       'adcode': '441704',\n",
       "       'name': '阳东区',\n",
       "       'center': '112.011267,21.864728',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0663',\n",
       "     'adcode': '445200',\n",
       "     'name': '揭阳市',\n",
       "     'center': '116.355733,23.543778',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0663',\n",
       "       'adcode': '445281',\n",
       "       'name': '普宁市',\n",
       "       'center': '116.165082,23.29788',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0663',\n",
       "       'adcode': '445222',\n",
       "       'name': '揭西县',\n",
       "       'center': '115.838708,23.4273',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0663',\n",
       "       'adcode': '445224',\n",
       "       'name': '惠来县',\n",
       "       'center': '116.295832,23.029834',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0663',\n",
       "       'adcode': '445203',\n",
       "       'name': '揭东区',\n",
       "       'center': '116.412947,23.569887',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0663',\n",
       "       'adcode': '445202',\n",
       "       'name': '榕城区',\n",
       "       'center': '116.357045,23.535524',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0753',\n",
       "     'adcode': '441400',\n",
       "     'name': '梅州市',\n",
       "     'center': '116.117582,24.299112',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0753',\n",
       "       'adcode': '441427',\n",
       "       'name': '蕉岭县',\n",
       "       'center': '116.170531,24.653313',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441426',\n",
       "       'name': '平远县',\n",
       "       'center': '115.891729,24.569651',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441481',\n",
       "       'name': '兴宁市',\n",
       "       'center': '115.731648,24.138077',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441424',\n",
       "       'name': '五华县',\n",
       "       'center': '115.775004,23.925424',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441423',\n",
       "       'name': '丰顺县',\n",
       "       'center': '116.184419,23.752771',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441422',\n",
       "       'name': '大埔县',\n",
       "       'center': '116.69552,24.351587',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441403',\n",
       "       'name': '梅县区',\n",
       "       'center': '116.083482,24.267825',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0753',\n",
       "       'adcode': '441402',\n",
       "       'name': '梅江区',\n",
       "       'center': '116.12116,24.302593',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '020',\n",
       "     'adcode': '440100',\n",
       "     'name': '广州市',\n",
       "     'center': '113.280637,23.125178',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '020',\n",
       "       'adcode': '440117',\n",
       "       'name': '从化区',\n",
       "       'center': '113.587386,23.545283',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440115',\n",
       "       'name': '南沙区',\n",
       "       'center': '113.53738,22.794531',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440114',\n",
       "       'name': '花都区',\n",
       "       'center': '113.211184,23.39205',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440111',\n",
       "       'name': '白云区',\n",
       "       'center': '113.262831,23.162281',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440113',\n",
       "       'name': '番禺区',\n",
       "       'center': '113.364619,22.938582',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440103',\n",
       "       'name': '荔湾区',\n",
       "       'center': '113.243038,23.124943',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440105',\n",
       "       'name': '海珠区',\n",
       "       'center': '113.262008,23.103131',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440118',\n",
       "       'name': '增城区',\n",
       "       'center': '113.829579,23.290497',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440104',\n",
       "       'name': '越秀区',\n",
       "       'center': '113.280714,23.125624',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440112',\n",
       "       'name': '黄埔区',\n",
       "       'center': '113.450761,23.103239',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '020',\n",
       "       'adcode': '440106',\n",
       "       'name': '天河区',\n",
       "       'center': '113.335367,23.13559',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0751',\n",
       "     'adcode': '440200',\n",
       "     'name': '韶关市',\n",
       "     'center': '113.591544,24.801322',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0751',\n",
       "       'adcode': '440222',\n",
       "       'name': '始兴县',\n",
       "       'center': '114.067205,24.948364',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440282',\n",
       "       'name': '南雄市',\n",
       "       'center': '114.311231,25.115328',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440204',\n",
       "       'name': '浈江区',\n",
       "       'center': '113.599224,24.803977',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440224',\n",
       "       'name': '仁化县',\n",
       "       'center': '113.748627,25.088226',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440232',\n",
       "       'name': '乳源瑶族自治县',\n",
       "       'center': '113.278417,24.776109',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440229',\n",
       "       'name': '翁源县',\n",
       "       'center': '114.131289,24.353887',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440205',\n",
       "       'name': '曲江区',\n",
       "       'center': '113.605582,24.680195',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440203',\n",
       "       'name': '武江区',\n",
       "       'center': '113.588289,24.80016',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440233',\n",
       "       'name': '新丰县',\n",
       "       'center': '114.207034,24.055412',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0751',\n",
       "       'adcode': '440281',\n",
       "       'name': '乐昌市',\n",
       "       'center': '113.352413,25.128445',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0763',\n",
       "     'adcode': '441800',\n",
       "     'name': '清远市',\n",
       "     'center': '113.051227,23.685022',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0763',\n",
       "       'adcode': '441882',\n",
       "       'name': '连州市',\n",
       "       'center': '112.379271,24.783966',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441825',\n",
       "       'name': '连山壮族瑶族自治县',\n",
       "       'center': '112.086555,24.567271',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441826',\n",
       "       'name': '连南瑶族自治县',\n",
       "       'center': '112.290808,24.719097',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441881',\n",
       "       'name': '英德市',\n",
       "       'center': '113.405404,24.18612',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441821',\n",
       "       'name': '佛冈县',\n",
       "       'center': '113.534094,23.866739',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441823',\n",
       "       'name': '阳山县',\n",
       "       'center': '112.634019,24.470286',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441803',\n",
       "       'name': '清新区',\n",
       "       'center': '113.015203,23.736949',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0763',\n",
       "       'adcode': '441802',\n",
       "       'name': '清城区',\n",
       "       'center': '113.048698,23.688976',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0760',\n",
       "     'adcode': '442000',\n",
       "     'name': '中山市',\n",
       "     'center': '113.382391,22.521113',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '三角镇',\n",
       "       'center': '113.416,22.7079',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '横栏镇',\n",
       "       'center': '113.224,22.6048',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '五桂山街道',\n",
       "       'center': '113.399,22.4847',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '东升镇',\n",
       "       'center': '113.321,22.5607',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '神湾镇',\n",
       "       'center': '113.376,22.2768',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '火炬开发区街道',\n",
       "       'center': '113.42,22.5577',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '小榄镇',\n",
       "       'center': '113.23,22.7026',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '南朗镇',\n",
       "       'center': '113.482,22.519',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '古镇镇',\n",
       "       'center': '113.167,22.6751',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '民众镇',\n",
       "       'center': '113.499,22.6855',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '港口镇',\n",
       "       'center': '113.354,22.6027',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '石岐区街道',\n",
       "       'center': '113.405,22.5247',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '三乡镇',\n",
       "       'center': '113.432,22.3879',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '大涌镇',\n",
       "       'center': '113.297,22.4834',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '南头镇',\n",
       "       'center': '113.328,22.6882',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '黄圃镇',\n",
       "       'center': '113.329,22.7457',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '东区街道',\n",
       "       'center': '113.4,22.5274',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '坦洲镇',\n",
       "       'center': '113.38,22.2868',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '阜沙镇',\n",
       "       'center': '113.34,22.6406',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '西区街道',\n",
       "       'center': '113.314,22.5649',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '板芙镇',\n",
       "       'center': '113.358,22.4068',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '南区街道',\n",
       "       'center': '113.367,22.4892',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '沙溪镇',\n",
       "       'center': '113.344,22.5248',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0760',\n",
       "       'adcode': '442000',\n",
       "       'name': '东凤镇',\n",
       "       'center': '113.308,22.6803',\n",
       "       'level': 'street',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0769',\n",
       "     'adcode': '441900',\n",
       "     'name': '东莞市',\n",
       "     'center': '113.746262,23.046237',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '莞城街道',\n",
       "       'center': '113.743,23.0225',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '常平镇',\n",
       "       'center': '114.036,23.0074',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '望牛墩镇',\n",
       "       'center': '113.676,23.0683',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '大朗镇',\n",
       "       'center': '113.939,22.8654',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '麻涌镇',\n",
       "       'center': '113.562,22.9718',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '黄江镇',\n",
       "       'center': '113.973,22.8121',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '东莞生态园',\n",
       "       'center': '113.917,23.0806',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '樟木头镇',\n",
       "       'center': '114.018,22.8704',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '桥头镇',\n",
       "       'center': '114.065,23.0315',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '凤岗镇',\n",
       "       'center': '114.105,22.7308',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '松山湖管委会',\n",
       "       'center': '113.875,22.869',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '寮步镇',\n",
       "       'center': '113.888,22.9529',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '石龙镇',\n",
       "       'center': '113.833,23.1123',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '高埗镇',\n",
       "       'center': '113.773,23.112',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '塘厦镇',\n",
       "       'center': '114.05,22.7713',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '谢岗镇',\n",
       "       'center': '114.128,22.9901',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '厚街镇',\n",
       "       'center': '113.776,22.9097',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '虎门镇',\n",
       "       'center': '113.797,22.8587',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '南城街道',\n",
       "       'center': '113.737,23.0249',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '虎门港管委会',\n",
       "       'center': '113.562,22.9718',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '横沥镇',\n",
       "       'center': '114.006,23.0504',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '企石镇',\n",
       "       'center': '113.99,23.0541',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '东坑镇',\n",
       "       'center': '113.918,22.995',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '东城街道',\n",
       "       'center': '113.757,23.0485',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '石排镇',\n",
       "       'center': '113.988,23.068',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '沙田镇',\n",
       "       'center': '113.582,22.9426',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '洪梅镇',\n",
       "       'center': '113.607,23.0155',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '长安镇',\n",
       "       'center': '113.708,22.7941',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '道滘镇',\n",
       "       'center': '113.692,23.004',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '大岭山镇',\n",
       "       'center': '113.843,22.9534',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '茶山镇',\n",
       "       'center': '113.839,23.0813',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '清溪镇',\n",
       "       'center': '114.11,22.862',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '石碣镇',\n",
       "       'center': '113.846,23.1024',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '中堂镇',\n",
       "       'center': '113.734,23.1164',\n",
       "       'level': 'street',\n",
       "       'districts': []},\n",
       "      {'citycode': '0769',\n",
       "       'adcode': '441900',\n",
       "       'name': '万江街道',\n",
       "       'center': '113.709,23.0014',\n",
       "       'level': 'street',\n",
       "       'districts': []}]}]}]}"
      ]
     },
     "execution_count": 87,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "keywords='广东'\n",
    "subdistrict='2'\n",
    "municipality(key,keywords,subdistrict='2',page='1',offset='20',extensions='base',filter='',callback=None,output='json')\n",
    "### 最后一行这个格式调用也不能少了！"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 搜索POI \n",
    "> 服务API是一类简单的HTTP接口，提供多种查询POI信息的能力，其中包括关键字搜索、周边搜索、多边形搜索、ID查询四种筛选机制。\n",
    ">> 注意：在此接口之中，您可以通过city&citylimit参数指定希望搜索的城市或区县。而city参数能够接收citycode和adcode，citycode仅能精确到城市，而adcode却能够精确到区县。(无论您指定多少个type，每次请求最多返回1000个POI信息,建议您不要在type之中指定过多的类别，而是分多次请求从而得到更加准确的结果。)\n",
    ">>> 例如：北京，citycode：010，adcode：110000\n",
    ">>>> 北京-海淀区，citycode：010，adcode：110108\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 关键字搜索：\n",
    "#### 通过用POI的关键字进行条件搜索，例如：肯德基、朝阳公园等；同时支持设置POI类型搜索，例如：银行\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/place/ text?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. keywords查询关键字\n",
    ">>> 规则： 多个关键字用“|”分割\n",
    "       若不指定city，并且搜索的为泛词（例如“美食”）的情况下，返回的内容为城市列表以及此城市内有多少结果符合要求。\n",
    ">> * C. types查询POI类型\n",
    ">>> 可选值：分类代码 或 汉字（若用汉字，请严格按照附件之中的汉字填写）\n",
    "> 4. 可选参数：\n",
    ">> * A. city查询城市\n",
    ">>> 可选值：城市中文、中文全拼、citycode、adcode\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "def Keywords(key,keywords,types,city):\n",
    "    关键字_url = \"https://restapi.amap.com/v3/place/text?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"keywords\":keywords,\n",
    "        \"types\":types,\n",
    "        \"city\":city\n",
    "    }\n",
    "    r = requests.get(关键字_url,params)       \n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '1',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': 'B0FFIGLX5N',\n",
       "   'address': '新港西路135号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f2ffc7743773caf2aab3929e9e02a997'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4699806b0fc67194a8c6ee5cf3ed6266'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a9dd44d4d4e70cf01aaf96da95c4f35b'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '309',\n",
       "   'adname': '海珠区',\n",
       "   'name': '中山大学广州校区南校园',\n",
       "   'location': '113.298395,23.096729',\n",
       "   'tel': '020-84112828;020-84036491',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141IHRZ'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 90,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "keywords=\"中山大学\"\n",
    "types=\"高等院校\"\n",
    "city=\"广州\"\n",
    "Keywords(key,keywords,types,city)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 周边搜索：\n",
    "#### 在用户传入经纬度坐标点附近，在设定的范围内，按照关键字或POI类型搜索"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/place/around?parameters \n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. location中心点坐标\n",
    ">>> 规则：经度和纬度用\",\"分割，经度在前，纬度在后，经纬度小数点后不得超过6位\n",
    "> 4. 可选参数:\n",
    ">> * A.keywords查询关键字\n",
    ">> * B.types查询POI类型\n",
    ">> * C.city查询城市\n",
    ">> * D.radius半径查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "### 由地理编码代码获取了location\n",
    "东山中学_location='116.135586,24.305583'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 112,
   "metadata": {},
   "outputs": [],
   "source": [
    "def around(key,location,types,radius):\n",
    "    a_url=\"https://restapi.amap.com/v3/place/around?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"location\":location,\n",
    "    \"types\":types,\n",
    "    \"radius\":radius\n",
    "    }\n",
    "    r = requests.get(a_url,params)       \n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 113,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '213',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '江南路与梅水路交汇处客都汇商业文化广场1层1027号',\n",
       "   'distance': '750',\n",
       "   'biz_ext': {'cost': [], 'rating': '4.8'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;万宁超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9c7156560a0cc40cab29dda2b75244e7'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/430f9d5af7444d865c46b95ab67e3905'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/09182332098336569eda2f3016ae001c'}],\n",
       "   'typecode': '060415',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '万宁超市(客都汇店)',\n",
       "   'location': '116.132454,24.299475',\n",
       "   'tel': '0753-2120238',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFQ6P6K'},\n",
       "  {'parent': 'B0FFFEZ6JO',\n",
       "   'address': '江南路与梅水路交汇处客都汇商业文化广场1-3层',\n",
       "   'distance': '759',\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/94fdf880a62cd1486a3ef8362db33dab'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/960d31dc159bd21df3667ad762458aeb'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fd8ddc1dc7c88416a19c940ccb0c2abf'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '梅江区',\n",
       "   'name': '大润发(梅州店)',\n",
       "   'location': '116.132881,24.299221',\n",
       "   'tel': '0753-2102888;0753-2102012',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFH104V'},\n",
       "  {'parent': [],\n",
       "   'address': '溪宫路17号',\n",
       "   'distance': '976',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6a994a34173b19c2dad501aefb382357'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3c6ac895cf90eeb955af50ca519c2319'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/52407ea7f29f243c966e9f9c454cb9cd'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '本色机油超市',\n",
       "   'location': '116.131488,24.297650',\n",
       "   'tel': '18027711717',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL0B160'},\n",
       "  {'parent': [],\n",
       "   'address': '梅龙东路',\n",
       "   'distance': '1135',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '京东X智慧超市(无人超市)',\n",
       "   'location': '116.134696,24.295413',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0GRCOFI5X'},\n",
       "  {'parent': [],\n",
       "   'address': '梅龙路81号',\n",
       "   'distance': '1146',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/440514b6860d0bba831fc9b47ea39e34'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '京东X无人超市',\n",
       "   'location': '116.134606,24.295320',\n",
       "   'tel': '18923041988',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GULCT94U'},\n",
       "  {'parent': [],\n",
       "   'address': '东山大道54号',\n",
       "   'distance': '1208',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '昌泰超市',\n",
       "   'location': '116.132445,24.316050',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH3BWYN'},\n",
       "  {'parent': [],\n",
       "   'address': '教育路与梅龙路交叉路口南侧(金三桥大厦北侧)',\n",
       "   'distance': '1332',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '时代生活',\n",
       "   'location': '116.127231,24.296347',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFMHJ6ZS'},\n",
       "  {'parent': [],\n",
       "   'address': '学子大道东侧东山谷碧桂园学子文化中心商业二111-112号',\n",
       "   'distance': '1342',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/64991ea201983c3410332597e03f951f'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7cb11be956ef9730701e58d2b9bb80aa'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '山谷 生活',\n",
       "   'location': '116.141859,24.294964',\n",
       "   'tel': '18125522696',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFMEL67G'},\n",
       "  {'parent': 'B0FFLNMQQB',\n",
       "   'address': '顺风路7号',\n",
       "   'distance': '1369',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市|购物服务;商场;商场',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/baaa1903af856cf8e2182a1fd7686662'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2f877f28a4ff8b457a7364fcb1257630'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cd6d9a04ab3d599520f5824e7ce3d241'}],\n",
       "   'typecode': '060400|060100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '308',\n",
       "   'adname': '梅江区',\n",
       "   'name': '万佳时代广场',\n",
       "   'location': '116.123413,24.310906',\n",
       "   'tel': '0753-8601111',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL9W7LD'},\n",
       "  {'parent': [],\n",
       "   'address': '顺风路与公园路交叉路口东北侧(万佳时代广场)',\n",
       "   'distance': '1370',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '乐有家超市',\n",
       "   'location': '116.123432,24.310955',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFM4CCDB'},\n",
       "  {'parent': [],\n",
       "   'address': '彬芳大道北45号首层东北、东面3间店',\n",
       "   'distance': '1392',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/386dfefbeb53da5e6e867b44adc9ae32'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '天福便利店',\n",
       "   'location': '116.129685,24.294286',\n",
       "   'tel': '18933617598',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFJE2JSB'},\n",
       "  {'parent': [],\n",
       "   'address': '顺风路20之7-11',\n",
       "   'distance': '1432',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/91f14eb38af4a489df9dd22691e0d7bf'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '果然鲜生鲜专营店',\n",
       "   'location': '116.122502,24.310432',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG851M8'},\n",
       "  {'parent': [],\n",
       "   'address': '广东省梅州市梅江区梅南路18号附近',\n",
       "   'distance': '1452',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '日日顺服务超市',\n",
       "   'location': '116.121272,24.305706',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFMD6XM1'},\n",
       "  {'parent': [],\n",
       "   'address': '公园路3-4号附近',\n",
       "   'distance': '1461',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '先达连锁超市',\n",
       "   'location': '116.122240,24.310516',\n",
       "   'tel': '0753-2260889',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G35HUS57'},\n",
       "  {'parent': [],\n",
       "   'address': '公园路9-1号附近',\n",
       "   'distance': '1485',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '惠宜鲜生活超市',\n",
       "   'location': '116.123270,24.312804',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G0P9HKR3'},\n",
       "  {'parent': [],\n",
       "   'address': '梅南路28号',\n",
       "   'distance': '1508',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/96e92d746198c6ef8e6c5f079dc37b22'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/47d2910986e33e094bf651c4b583b7ff'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6fbbbe194eaa28e7af515e76fb72fc3d'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '江棱装饰',\n",
       "   'location': '116.120720,24.305519',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLDKME8'},\n",
       "  {'parent': [],\n",
       "   'address': '义化路53号',\n",
       "   'distance': '1575',\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9c895a125bb2ec7eb1e3163a61c719e2'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/80b715b3a024d2db03c0aefcd27350c0'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f5308a0741c41706bb883b64f886fd83'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '喜多多超市(东门塘分店)',\n",
       "   'location': '116.120709,24.309629',\n",
       "   'tel': '0753-2271661;18807530095',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F103JED'},\n",
       "  {'parent': [],\n",
       "   'address': '梅新路15号附近',\n",
       "   'distance': '1642',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '兔喜快递超市',\n",
       "   'location': '116.119978,24.301668',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G394M68F'},\n",
       "  {'parent': [],\n",
       "   'address': '鸿运路14号',\n",
       "   'distance': '1679',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f114dbfe5e7c88c33f3bde1d5719e86f'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '绿叶(江南鸿都店)',\n",
       "   'location': '116.131371,24.290995',\n",
       "   'tel': '18027713617',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIUVE1B'},\n",
       "  {'parent': [],\n",
       "   'address': '江南路裕安楼38-9号',\n",
       "   'distance': '1700',\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '梅州市',\n",
       "   'type': '购物服务;超级市场;超市',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55c85bc8a3105572de93f84d'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3d39fabcfcf9ae1eba655735df2daad2'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55c85bdba3105572de93fe10'}],\n",
       "   'typecode': '060400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '梅江区',\n",
       "   'name': '文惠综合批发部',\n",
       "   'location': '116.119984,24.300006',\n",
       "   'tel': '0753-2268120',\n",
       "   'shopid': [],\n",
       "   'id': 'B02F102R2J'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 113,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "location=\"116.135586,24.305583\"\n",
    "types=\"超市\"\n",
    "radius=\"5000\"\n",
    "around(key,location,types,radius)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 多边形搜索：\n",
    "#### 在多边形区域内进行搜索"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/place/polygon?parameters \n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. polygon经纬度坐标对\n",
    ">>> 规则：经度和纬度用\",\"分割，经度在前，纬度在后，坐标对用\"|\"分割。经纬度小数点后不得超过6位。多边形为矩形时，可传入左上右下两顶点坐标对；其他情况下首尾坐标对需相同。\n",
    "> 4. 可选参数:\n",
    ">> * A.keywords查询关键字\n",
    ">> * B.types查询POI类型\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 144,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 获取地理编码的函数:\n",
    "address1=\"广东省广州市中山大学南方学院\"\n",
    "address2=\"广东省广州市广州大学华软软件学院\"\n",
    "address3=\"广东省广州市华南农业大学珠江学院\"\n",
    "def geocode(key,address,city=None,batch=None)->str:\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"address\":address\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()['geocodes'][0]['location']\n",
    "    return results\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 139,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 139,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 中大南方地理编码\n",
    "中大南方_location = geocode(key,address1)\n",
    "中大南方_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 141,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.495460,23.451063'"
      ]
     },
     "execution_count": 141,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 广州大学华软软件学院地理编码\n",
    "华软学院_location = geocode(key,address2)\n",
    "华软学院_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 145,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.580858,23.512186'"
      ]
     },
     "execution_count": 145,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### 华南农业大学珠江学院\n",
    "华农珠江_location = geocode(key,address3)\n",
    "华农珠江_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 148,
   "metadata": {},
   "outputs": [],
   "source": [
    "def around(key,polygon,keywords,types):\n",
    "    _url=\"https://restapi.amap.com/v3/place/polygon?parameters\"\n",
    "    params = {\n",
    "    \"key\":key,\n",
    "    \"polygon\":polygon,\n",
    "    \"types\":types,\n",
    "    \"keywords\":keywords\n",
    "    }\n",
    "    r = requests.get(_url,params)       \n",
    "    results = r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 149,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '1',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '从化大道南欣荣宏商业街83号',\n",
       "   'distance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.5'},\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '购物服务;便民商店/便利店;7-ELEVEn便利店',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/12bbf7a736b742086d803a3ba59e60d6'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4b57eac72675bd797e20e5d68b1a2f91'},\n",
       "    {'provider': [],\n",
       "     'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/aa16928e7da3c642d37aa2f156f3ba70'}],\n",
       "   'typecode': '060201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '7-ELEVEn(从化欣荣宏店)',\n",
       "   'location': '113.591752,23.531143',\n",
       "   'tel': '020-37968121',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFJFCU14'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 149,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "polygon=\"113.679287,23.632575|113.495460,23.451063|113.580858,23.512186\"\n",
    "keywords=\"7-ELEVEN\"\n",
    "types=\"060201\"\n",
    "around(key,polygon,keywords,types)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### ID查询：\n",
    "#### 通过POI ID，查询某个POI详情，建议可同输入提示API配合使用"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/place/detail?parameters \n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. id兴趣点ID\n",
    ">>> 规则：兴趣点的唯一标识ID\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 152,
   "metadata": {},
   "outputs": [],
   "source": [
    "### 不知道咋找id"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## IP定位\n",
    "### 是一个简单的HTTP接口，根据用户输入的IP地址，能够快速的帮用户定位IP的所在位置。\n",
    "> 能够将IP信息转换为地理位置信息。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/ip?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：key\n",
    "> 4. 可选参数：\n",
    ">> * A.IP ip地址\n",
    ">>> 规则：需要搜索的IP地址（仅支持国内）若用户不填写IP，则取客户http之中的请求来进行定位\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 192,
   "metadata": {},
   "outputs": [],
   "source": [
    "def IP(key,ip):\n",
    "    ip_url=\"https://restapi.amap.com/v3/ip?parameters\"\n",
    "    params={\n",
    "        \"key\":key,\n",
    "        \"ip\":ip\n",
    "    }\n",
    "    r=requests.get(ip_url,params)\n",
    "    results=r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 162,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '广州市',\n",
       " 'adcode': '440100',\n",
       " 'rectangle': '113.1017375,22.93212254;113.6770499,23.3809537'}"
      ]
     },
     "execution_count": 162,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ip=\"175.191.182.38\"\n",
    "IP(key,ip)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 静态地图\n",
    "### 静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/staticmap?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. location(部分条件必填)\n",
    ">> * C. zoom 地图级别(地图缩放级别:[1,17])\n",
    "> 4. 可选参数：\n",
    ">> * A. size地图大小\n",
    ">>> 规则：图片宽度*图片高度。最大值为1024*1024,，默认值400* 400, 可选值：small,mid,large\n",
    ">> * B. labels标签\n",
    ">> * C. traffic交通路况标识"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 189,
   "metadata": {},
   "outputs": [],
   "source": [
    "def picture(key,location,zoom,size,traffic):\n",
    "    p_url=\"https://restapi.amap.com/v3/staticmap?parameters\"\n",
    "    params={\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"zoom\":zoom,\n",
    "        \"size\":size,\n",
    "        \"traffic\":traffic\n",
    "    }\n",
    "    r = requests.get(p_url,params)\n",
    "    data = r.url                              ### 重点！！！r.url哦!!!\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 190,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'https://restapi.amap.com/v3/staticmap?parameters&key=0183e3acc9bdff621d98d15d15a37181&location=113.679287%2C23.632575&zoom=17&size=500%2A500&traffic=1'"
      ]
     },
     "execution_count": 190,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "location=\"113.679287,23.632575\"\n",
    "zoom=\"17\"\n",
    "size=\"500*500\"\n",
    "traffic=\"1\"\n",
    "picture(key,location,zoom,size,traffic)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 坐标转换\n",
    "### 坐标转换是一类简单的HTTP接口，能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标。(为了使用高德服务，用户需要将非高德坐标转换为高德坐标。)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. location\n",
    "> 4. 可选参数：\n",
    ">> * A. coordsys原坐标系\n",
    ">>> 规则：可选值：gps /mapbar /baidu /autonavi(不进行转换)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 215,
   "metadata": {},
   "outputs": [],
   "source": [
    "def convert(key,locations,coordsys):\n",
    "    c_url=\"https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\"\n",
    "    params={\n",
    "        \"key\":key,\n",
    "        \"locations\":locations,\n",
    "        \"coordsys\":coordsys\n",
    "    }\n",
    "    r=requests.get(c_url,params)\n",
    "    results=r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 216,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '116.487585177952,39.991754014757;116.487585177952,39.991653917101'}"
      ]
     },
     "execution_count": 216,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "locations=\"113.679287,23.632575|113.495460,23.451063\"\n",
    "coordsys=\"gps\"\n",
    "convert(key,location,coordsys)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 天气查询\n",
    "### 气查询是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "> 1. url:https://restapi.amap.com/v3/weather/weatherInfo?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. city城市编码\n",
    ">>> 规则:输入城市的adcode\n",
    "> 4. 可选参数：\n",
    ">> * A. extensions气象类型\n",
    ">>> 规则：可选值：base:返回实况天气/all:返回预报天气"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 218,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(key,city,extensions):\n",
    "    w_url=\"https://restapi.amap.com/v3/weather/weatherInfo?parameters\"\n",
    "    params={\n",
    "        \"key\":key,\n",
    "        \"city\":city,\n",
    "        \"extensions\":extensions\n",
    "    }\n",
    "    r=requests.get(w_url,params)\n",
    "    results=r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 220,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '从化区',\n",
       "   'adcode': '440117',\n",
       "   'province': '广东',\n",
       "   'reporttime': '2020-11-14 17:22:35',\n",
       "   'casts': [{'date': '2020-11-14',\n",
       "     'week': '6',\n",
       "     'dayweather': '阴',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '23',\n",
       "     'nighttemp': '20',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-15',\n",
       "     'week': '7',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '26',\n",
       "     'nighttemp': '19',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-16',\n",
       "     'week': '1',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '20',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-17',\n",
       "     'week': '2',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '28',\n",
       "     'nighttemp': '21',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 220,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "city=\"440117\"\n",
    "extensions=\"all\"\n",
    "weather(key,city,extensions)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 输入提示\n",
    "### 输入提示是一类简单的HTTP接口，提供根据用户输入的关键词查询返回建议列表。\n",
    "> 1. url:https://restapi.amap.com/v3/assistant/inputtips?parameters\n",
    "> 2. requests.get()\n",
    "> 3. 必选参数：\n",
    ">> * A. key\n",
    ">> * B. keywords\n",
    "> 4. 可选参数：\n",
    ">> * A. type（POI分类）\n",
    ">> * B. city\n",
    ">>> 规则:可选值：citycode、adcode，不支持县级市。如：010/110000"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 223,
   "metadata": {},
   "outputs": [],
   "source": [
    "def inputtips(key,city,keywords,types):\n",
    "    w_url=\"https://restapi.amap.com/v3/assistant/inputtips?parameters\"\n",
    "    params={\n",
    "        \"key\":key,\n",
    "        \"city\":city,\n",
    "        \"keywords\":keywords,\n",
    "        \"types\":types\n",
    "    }\n",
    "    r=requests.get(w_url,params)\n",
    "    results=r.json()\n",
    "    return results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 224,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '咖啡厅',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGJHHQ6',\n",
       "   'name': 'Lock Chuck Coffee',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.296999,23.132764',\n",
       "   'address': '犀牛路6号101',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B00140C22H',\n",
       "   'name': '星巴克臻选(中国大酒店店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.260291,23.140048',\n",
       "   'address': '流花路1号中国大酒店商业大厦1层S125及S155',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFIJU1UV',\n",
       "   'name': 'now and then咖啡厅',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.254240,23.146760',\n",
       "   'address': '壹马服装广场一楼1130号咖啡厅',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFK9KUFY',\n",
       "   'name': 'luckin coffee瑞幸咖啡(中华广场店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.281931,23.125476',\n",
       "   'address': '中华广场西门1层',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGPQWCV',\n",
       "   'name': '星巴克(中华广场2店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.282517,23.125452',\n",
       "   'address': '中山三路33号中华广场2层2016号铺区',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFKU6LJ6',\n",
       "   'name': '咖菲纳咖啡(流行前线店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.284015,23.126732',\n",
       "   'address': '中山三路25-27号流行前线D006号铺(广播电台天生快活人旁)',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFHN6YE5',\n",
       "   'name': '星巴克臻选(中山3路2号店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.286507,23.126807',\n",
       "   'address': '中山三路2号(近烈士陵园)',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0G1TDVIV1',\n",
       "   'name': '星辰咖啡',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.281761,23.127205',\n",
       "   'address': '中山三路36号',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFKSD6IL',\n",
       "   'name': '水厂咖啡(三角市店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.279175,23.123187',\n",
       "   'address': '永胜街55号东盛大厦首层',\n",
       "   'typecode': '050500',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 224,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "city=\"广州\"\n",
    "keywords=\"咖啡厅\"\n",
    "types=\"0505\"\n",
    "inputtips(key,city,keywords,types)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
